WINDOWS ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using pas

WINDOWS mysql57 ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

解决办法:https://jingyan.baidu.com/article/3ea51489e6cfbe52e61bba25.html

注意

1、修改的一定是my.ini文件不是my.default.ini文件

2、mysql57版本的重新设置密码的语句是

update user set authentication_string=password("mypassword") where user="root";

而不是 

update user set password=password("mypassword")  where user="root";

猜你喜欢

转载自936606539.iteye.com/blog/2410240