phpMyAdmin Access denied

phpMyAdmin give this error.

MySQL said:

#1045 - Access denied for user 'root'@'localhost' (using password: YES) phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.


I had to set:

$cfg['Servers'][$i]['AllowNoPassword'] = true

in apps/phpmyadmin/config.inc.php


Did you maybe try using no password ? By default password for root isn't set. If you are on linux try resetting the password by directly accessing the mysqldb. Maybe this link can help :

http://ubuntuforums.org/showthread.php?t=227704

链接地址: http://www.djcxy.com/p/69296.html

上一篇: 修复phpMyAdmin用户'root'@'localhost'拒绝访问

下一篇: phpMyAdmin访问被拒绝