1. vi /etc/my.cnf
2. update mysql.user set authentication_string=password(‘123456‘) where user=‘root‘ and host=‘localhost‘; 3. FLUSH PRIVILEGES;
MySQL 忘记密码
原文:https://www.cnblogs.com/lpc-work/p/14644153.html