我安装了MAMP,我从来没有遇到过问题。今天,我想在到phpMyAdmin记录,我得到了以下错误消息:MAMP和PHPMyAdmin:#1045 - 访问拒绝用户'root'@'localhost'(使用密码:是)
1045 - 访问被拒绝的用户 '根' @ 'localhost' 的(使用密码:YES)
在我的config.inc.php文件,以下选项设置:
$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)
不知道什么可能发生。我没有更改密码或类似的东西。它突然停止工作。有任何想法吗?
尽量不使用任何密码,并检查你是什么端口。使用 – Jonathan
尝试在哪里/如何?我所做的只是启动MAMP服务器并试图导航到PHPMyAdmin,并且我得到错误。 –
和端口: Apache:80,Ngnix:8888,MySQL:3306 –