phpMyAdmin Access denied [closed]

爷,独闯天下 提交于 2019-12-24 04:47:12

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!