相关疑难解决方法(0)

针对phpMyAdmin修复用户'root'@'localhost'拒绝访问

我在PC上使用WAMP Server 2.2.在phpMyAdmin(版本5.5.24)中,我编辑了"root"用户(使用"localhost"主机)并为其指定了"root"密码.这是我试图恢复的一个大错误.现在,当我转到localhost/phpmyadmin /我在左边获取数据库菜单,但主框架有一个错误,内容如下:

#1045 - Access denied for user 'root'@'localhost' (using password: NO)
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.
Run Code Online (Sandbox Code Playgroud)

如果我去127.0.0.1/phpmyadmin,我没有得到错误,一切正常.

我尝试将用户密码更改回无密码; 我尝试修改config.inc.php文件以添加新密码(但这使得phpMyAdmin完全错误输出); 我尝试删除并重新创建root/localhost用户.似乎没什么用.root/localhost用户似乎没有密码和所有权限,但错误仍然存​​在.

任何想法或如何让这个用户的访问恢复正常,而无需重新安装WAMP?

php mysql wamp phpmyadmin

64
推荐指数
8
解决办法
34万
查看次数

标签 统计

mysql ×1

php ×1

phpmyadmin ×1

wamp ×1