phpMyAdmin 尝试连接到 MySQL 服务器,但服务器拒绝连接。

配置WAMPServer完成,测试phpMyAdmin出现错误:“phpMyAdmin 尝试连接到 MySQL 服务器,但服务器拒绝连接。”因为之前我配MySql的时候自己设过密码为root,但是wamp认识的密码是初始的空密码,所以无法连接。现在就需要去修phpmyadmin 文件目录下的config.inc.php文件,编辑此文件,找到/* Authentication type and info */这句下面的$cfg['Servers'][$i]['user'] = 'root';$cfg['Servers'][$i]['password'] = ''; 改为:

$cfg['Servers'][$i]['user'] = 'root';$cfg['Servers'][$i]['password'] = 'root'; 

猜你喜欢

转载自blog.csdn.net/m0_38073011/article/details/72123680
今日推荐