[mysqld]
skip-grant-tables
use mysql;
update user set password=password('123456') where User='root';
flush privileges;
5.7以上:
use mysql;
update mysql.user set authentication_string=password('123456') where user='root';
flush privileges;
[mysqld]
skip-grant-tables
use mysql;
update user set password=password('123456') where User='root';
flush privileges;
5.7以上:
use mysql;
update mysql.user set authentication_string=password('123456') where user='root';
flush privileges;
本文标题:mysql 忘记密码重置
本文链接:https://www.haomeiwen.com/subject/fmadwrtx.html
网友评论