XAMPP报错:mysqli::real_connect(): (HY000/1045): Access denied for user ‘pma‘@‘localhost‘

Posted 王同学要努力

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了XAMPP报错:mysqli::real_connect(): (HY000/1045): Access denied for user ‘pma‘@‘localhost‘相关的知识,希望对你有一定的参考价值。

XAMPP报错:mysqli::real_connect(): (HY000/1045): Access denied for user ‘pma’@‘localhost’

解决步骤:

打开phpmyadmin文件夹下面的config.inc.php文件并打开,找到

$cfg['Servers'][$i]['controluser'] = 'pma';

$cfg['Servers'][$i]['controlpass'] = '';

将其注释掉并改成你的数据库用户和密码,保存

$cfg['Servers'][$i]['controluser'] = 'root';

$cfg['Servers'][$i]['controlpass'] = '123456';

刷新或重新打开phpmyadmin 成功进入MySQL

以上是关于XAMPP报错:mysqli::real_connect(): (HY000/1045): Access denied for user ‘pma‘@‘localhost‘的主要内容,如果未能解决你的问题,请参考以下文章

centos7 64位系统里安装xampp报错

XAMPP启动mysql报错Port 3306 in use by ““C:Program FilesMySQLMySQL Server 5.5inmysqld“……

XAMPP启动mysql报错Port 3306 in use by ““C:Program FilesMySQLMySQL Server 5.5inmysqld“……

centos6.9安装xampp后报错:egrep: error while loading shared libraries: libc.so.6: cannot open shared objec

XAMPP报错:mysqli::real_connect(): (HY000/1045): Access denied for user ‘pma‘@‘localhost‘

XAMPP报错:mysqli::real_connect(): (HY000/1045): Access denied for user ‘pma‘@‘localhost‘