问题
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.
回答1:
I had to set:
$cfg['Servers'][$i]['AllowNoPassword'] = true
in apps/phpmyadmin/config.inc.php
回答2:
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
来源:https://stackoverflow.com/questions/5483518/phpmyadmin-access-denied