如何摆脱这个错误,它说mysqli :: real_connect():( HY000 / 1045):访问被拒绝用户'root'@'localhost'(使用密码:是)

时间:2017-07-12 05:53:09

标签: php codeigniter phpmyadmin

在我的database.php codeigniter

$active_group = 'default';
$query_builder = TRUE;

$db['default'] = array(
    'dsn'   => '',
    'hostname' => 'localhost',
    'username' => 'root',
    'password' => '',
    'database' => 'employee_db',
    'dbdriver' => 'mysqli',
    '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' => TRUE
);

但是其他项目正在运行,因为我的phpmyadmin上的root帐户上没有密码,这个可能有什么问题

0 个答案:

没有答案