我运行XAMPP,几天前我通过phpmyadmin为root密码设置了密码,从那以后我就无法访问phpMyAdmin了。
我跟踪了此链接上的帮助,但在那里一切似乎都很好(在config.inc.php中)。我甚至尝试完全不启动xampp,重新启动窗口,然后重新安装xampp,但是仍然指向localhost/phpmyadmin,我得到以下错误
MySQL said:
Cannot connect: invalid settings.
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.我还试图通过mysqld.bat重新设置根密码,就像mysql网站帮助中提供的那样,但没有效果。
请帮帮忙!
发布于 2009-08-14 08:41:17
您可以使用
UPDATE user SET Password=PASSWORD('newpwd') WHERE User='root';
flush privileges;
exit;接下来,正常重新启动MySQL。
希望这能有所帮助。
https://serverfault.com/questions/54118
复制相似问题