Codeigniter显示错误:
Unable to connect to your database server using the provided settings.
在我的项目中,我使用两个数据库。我刚刚导入了一个旧数据库,我无法连接到它。 我正在使用WAMP。用户名,主机,密码等是对的。我的其他数据库工作得很完美。
$db['old']['hostname'] = 'localhost';
$db['old']['username'] = 'root';
$db['old']['password'] = '';
$db['old']['database'] = 'my_db';
$db['old']['dbdriver'] = 'mysql';
$db['old']['dbprefix'] = '';
$db['old']['pconnect'] = TRUE;
$db['old']['db_debug'] = FALSE;
$db['old']['cache_on'] = FALSE;
$db['old']['cachedir'] = '';
$db['old']['char_set'] = 'utf8';
$db['old']['dbcollat'] = 'utf8_general_ci';
$db['old']['swap_pre'] = '';
$db['old']['autoinit'] = TRUE;
$db['old']['stricton'] = FALSE;
我试图将dbdriver设置为mysqli,db_debug设置为false等。这些提示都不起作用。