Organizational Research By

Surprising Reserch Topic

Experts Most Trusted Topic


code igniter error: Unable to connect to your database server using the provided settings. Filename: core/Loader.php Line Number: 346


I'm developing a website application using codeigniter at localhost and then i host it in hawkhost.

At localhost it runs well, but at host there's and error :

Unable to connect to your database server using the provided settings. Filename: core/Loader.php Line Number: 346

this is my db configuration

$active_group = 'default';
$active_record = TRUE;

$db['default']['hostname'] = 'localhost';
$db['default']['username'] = '****';
$db['default']['password'] = '****';
$db['default']['database'] = '****';
$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']['swap_pre'] = '';
$db['default']['autoinit'] = TRUE;
$db['default']['stricton'] = FALSE;
I know many people already asked this problem but it doesn't seems to solve anything on my case. changing $db['default']['db_debug'] = TRUE; to false only hide the error but when i tried to get data from query it doesn't return anything.

I also tried to change $db['default']['pconnect'] = FALSE; to true and still doesn't work.

asked Jun 10, 2015 in codeinither by rajesh
0 votes
65 views



Related Hot Questions



Government Jobs Opening


...