phpMyAdmin Access denied [closed]

2019-07-19 18:39发布

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.

2条回答
Luminary・发光体
2楼-- · 2019-07-19 19:00

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

查看更多
仙女界的扛把子
3楼-- · 2019-07-19 19:07

I had to set:

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

in apps/phpmyadmin/config.inc.php

查看更多
登录 后发表回答