Loading

Linux里面的MySQL忘记密码RROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

1.在my.conf
我的conf在etc下

skip-grant-tables

编写完:wq保存退出

2.进入mysql

mysql -u root -p

执行以下命令

update mysql.user set authentication_string=password('123qwe') where user='root' and Host = 'localhost';

3.到这里还没结束,需要把你my.conf 里面的skip-grant-tables删除再登录

posted @ 2020-07-07 10:29  Rzk  阅读(108)  评论(0编辑  收藏  举报