我有一台在 Mac 上运行 XAMPP 的本地主机。在某些时候,我在 phpMyAdmin 中设置了一个我已经忘记的密码。谁能帮我回到 phpMyAdmin?我已经学习了大量教程,但它们要么不起作用,要么引用了一些似乎不在我的计算机上的文件。有没有简单的方法?
当我尝试打开时:
http://localhost
我得到:
The Server http://localhost:80 requires a username and password
最佳答案
你想编辑这个文件: "\xampp\phpMyAdmin\config.inc.php"
改变这一行:
$cfg['Servers'][$i]['password'] = 'WhateverPassword';
无论您的密码是什么。 如果您忘记了密码,请在 Shell 中运行此命令:
mysqladmin.exe -u root password WhateverPassword
“WhateverPassword”是您的新密码。
关于mysql - 如何找回丢失的 phpMyAdmin 密码,XAMPP,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16511444/