1. mysqld --skip-grant-tables
2. cmd mysql
3. use mysql;
4. update user set password=password("123") where user="root";
5. flush privileges;
1. mysqld --skip-grant-tables
2. cmd mysql
3. use mysql;
4. update user set password=password("123") where user="root";
5. flush privileges;
本文标题:Mysql 忘记root密码
本文链接:https://www.haomeiwen.com/subject/myjqixtx.html
网友评论