我正在实时服务器上上传网站。在我的database.php中,我将主机名设置为localhost,但我给出了这个错误。
Message: mysqli::real_connect(): (HY000/1130): Host 'webhost.daily.co.uk' is not allowed to connect to this MySQL server
提前致谢
最佳答案
这样配置
$db['default'] = array(
'dsn' => '',
'hostname' => 'localhost', // make sure hostname
'username' => '', // username you created when created DB
'password' => '', // password you created when created DB
'database' => '', // DB name as well
关于mysql - Codeigniter - database.php 在线服务器的主机名是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34531314/