Welcome Guest, Not a member yet? Register   Sign In
Unable to connect to your database server using the provided settings.
#1

Hi,

I have database connection problem after restarted my server. When I try to load my website, it shows “Unable to connect to your database server using the provided settings”. However, this issue is not happens all the time, sometime page loads without any issue.

I have checked my db connection stings like hostname, dbname, username and password and everything is correct.

Below is the db connection setting which I am using.

$db['default']['hostname'] = xxxx.com';
$db['default']['username'] = ‘xxxx';
$db['default']['password'] = 'xxxxx';
$db['default']['database'] = 'xxxx';
$db['default']['dbdriver'] = 'mysql';
$db['default']['dbprefix'] = '';
$db['default']['pconnect'] = FALSE;
$db['default']['db_debug'] = TRUE;
$db['default']['cache_on'] = FALSE;
$db['default']['cachedir'] = '';
$db['default']['char_set'] = 'utf8';
$db['default']['dbcollat'] = 'utf8_general_ci';
$db['default']['active_r'] = TRUE;
$db['default']['swap_pre'] = '';
$db['default']['autoinit'] = TRUE;
$db['default']['stricton'] = FALSE;

Also attached screenshot of error message with this.
Please help me in this.

Attached Files Thumbnail(s)
   
Reply


Messages In This Thread
Unable to connect to your database server using the provided settings. - by raj.novel - 07-17-2015, 03:32 AM



Theme © iAndrew 2016 - Forum software by © MyBB