mysql - code igniter error: Unable to connect to your database server using the provided settings. Filename: core/Loader.php Line Number: 346 -
i'm developing website application using codeigniter @ localhost , host in hawkhost.
at localhost runs well, @ host there's , error :
unable connect database server using provided settings. filename: core/loader.php line number: 346
this 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 asked problem doesn't seems solve on case. changing $db['default']['db_debug'] = true;
false hide error when tried info query doesn't homecoming anything.
i tried alter $db['default']['pconnect'] = false;
true , still doesn't work.
any help please?
the problem due credentials. test using simple code check if connection can made.
the problem in username, realize there's additional suffix when using hosting. such suffix_user
think same errors in core/loader.php line number: 346 has same solution. create sure username, password , host right.
it's solved. give thanks helping.
php mysql codeigniter
No comments:
Post a Comment