Welcome Guest, Not a member yet? Register   Sign In
A Database Error Occurred
#1

[eluser]almarjin[/eluser]
Hi,

Got this error on the live site. on my localhost it's working. I'm sure that my config is right but still not working.

A Database Error Occurred
Unable to connect to your database server using the provided settings.

database.php

$active_group = "default";
$active_record = TRUE;

$db['default']['hostname'] = "localhost";
$db['default']['username'] = "almarjin";
$db['default']['password'] = "";
$db['default']['database'] = "umdp";
$db['default']['dbdriver'] = "mysql";
$db['default']['dbprefix'] = "";
$db['default']['pconnect'] = TRUE;
$db['default']['db_debug'] = TRUE;
$db['default']['cache_on'] = FALSE;
$db['default']['cachedir'] = "";
$db['default']['char_set'] = "utf8";
$db['default']['dbcollat'] = "utf8_general_ci";

Thanks.
#2

[eluser]shaffick[/eluser]
You most likely have the wrong database settings for the live site.

Code:
$db[’default’][’password’] = “”;
Is the password for the live site empty?
You should probably put a password in there. A lot safer.
#3

[eluser]almarjin[/eluser]
yeah it's empty

thanks for your time
#4

[eluser]almarjin[/eluser]
shaffick,

I added new user and created a password for it. and it is working now. thanks

maybe it has password that i forgot

thanks again.




Theme © iAndrew 2016 - Forum software by © MyBB