mac在配置mysql的时候遇到如下错误
来源:2-2 mysql和navicat的安装和使用
Giroy3925940
2017-07-07
AbbottdeMacBook-Pro:~ Abbott$ mysql -u root -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
输入的密码是root
写回答
1回答
-
用grant命令,把密码设置为root,然后在重启mysql登录
grant all privileges on *.* to 'root'@'localhost' identified by 'root' with grant option
012017-07-08
相似问题