Phpmyadmin不允许空密码


3

我正在运行Ubuntu 11.04,我安装了phpmyadmin(版本4:3.3.10-1)。但是当我尝试使用phpmyadmin时,我收到错误消息

Login without a password is forbidden by configuration (see AllowNoPassword)

我编辑了位于/ etc / phpmyadmin中的config.inc.php来取消注释该行 AllowNoPassword = TRUE 并重新启动apache2服务器和mysql服务器,但我得到相同的错误。

任何帮助表示赞赏。

Answers:


0

连接到服务器;

use mysql; 
update user set password=PASSWORD("") where User='root'; 
flush privileges;

另外,请确保/ etc / phpmyadmin是相关的。也许从安装PHPMyAdmin的文件夹中读取配置文件。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.