我在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.
如果我转到127.0.0.1/phpmyadmin,则不会收到该错误,并且一切正常。
我尝试将用户的密码改回无密码。我尝试修改config.inc.php文件以添加新密码(但这使phpMyAdmin完全出错);我尝试删除并重新创建root / localhost用户。似乎没有任何作用。root / localhost用户似乎没有密码和所有特权,但是错误仍然存在。
有什么想法或如何使该用户的访问权限恢复正常而不必重新安装WAMP?