phpMyAdmin无法登陆MySQL解决一例


欢迎使用 phpMyAdmin 2.7.0-pl1

phpMyAdmin 试图连接到 MySQL 服务器,但服务器拒绝连接。您应该检查 config.inc.php 中的主机、用户名和密码,并且确定这些信息与 MySQL 服务器的管理员所给出的信息一致。

错误

MySQL 返回:

#1045 - Access denied for user 'root'@'localhost' (using password: YES)

到WWW的文件夹下面,找到

config.inc.php文件中这一行

Authentication method (config, http or cookie based)?

$cfg['Servers'][$i]['user']          = 'root';      // MySQL user

$cfg['Servers'][$i]['password']      = 'sa';

把'sa'改为你自己的密码

相关内容