我在我的本地主机上有这个,它完全正常。
但是当我把它放在服务器上时我正确配置了数据库设置
这是我的config / database.php
$db['default'] = array(
'dsn' => '',
'hostname' => '111.111.1.111', //sample host
'username' => 'root',
'password' => 'password',
'database' => 'mydatabase',
'dbdriver' => 'mysqli',
'port' => '1234',
'dbprefix' => '',
'pconnect' => FALSE,
'db_debug' => (ENVIRONMENT !== 'production'),
'cache_on' => FALSE,
'cachedir' => '',
'char_set' => 'utf8',
'dbcollat' => 'utf8_general_ci',
'swap_pre' => '',
'encrypt' => FALSE,
'compress' => FALSE,
'stricton' => FALSE,
'failover' => array(),
'save_queries' => FALSE
);
但我得到的只是错误
Unable to connect to your database server using the provided settings.
Filename: third_party/MX/Base.php
Line Number: 55
有什么问题?