Codeigniter error when trying to connect to database using mysqli

后端 未结 10 997
陌清茗
陌清茗 2020-12-21 09:39

I am getting Following error in my CodeIgniter application which is live on server.

Here is the output of the error:

A PHP Error was encounte

10条回答
  •  眼角桃花
    2020-12-21 10:08

    Try to set config/database.php 'username' => 'xxx' to 'username' => 'root' without any password.

    $db['default'] = array( 
    'dsn' => '',
    'hostname' => 'localhost',
    'username' => 'root',
    'password' => '',
    

提交回复
热议问题