我已经安装了MAMP,一直没有出现问题。今天我尝试登录PHPMyAdmin,但是出现了以下错误信息:
在我的config.inc.php文件中,设置了以下选项:1045 - 用户'root'@'localhost'被拒绝访问(使用密码:是)
$cfg['Servers'][$i]['auth_type'] = 'config'; // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user'] = 'root'; // MySQL user
$cfg['Servers'][$i]['password'] = 'root';
我从未更改过我的密码。这是一个本地安装,所以我一直使用“root”作为用户名和密码。
我尝试通过终端访问MySQL:
/Applications/MAMP/Library/bin/mysql
但我得到了这个:
ERROR 1045 (28000): Access denied for user 'boneill'@'localhost' (using password: NO)
不确定发生了什么。我没有更改密码或其他任何东西。它突然停止工作了。有什么想法吗?