MySQL 忘记密码

时间:2021-04-12 12:44:01   收藏:0   阅读:0

1. vi /etc/my.cnf

技术图片

 

 

2.  update mysql.user set authentication_string=password(‘123456‘) where user=‘root‘ and host=‘localhost‘;

3.  FLUSH PRIVILEGES;

技术图片

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!