1.停止mysql
2.命令行启动mysqlmysqld --defaults-file="c:\mysql\mysql server 5.1\my.ini" --console --skip-grant-tables
3.无密码登录后执行以下sqlupdate mysql.user set password = password('123456') where user = 'root';flush privileges;
一切恢复正常!
Powered by: 博客园 Copyright © 2024 coffee Powered by .NET 9.0 on Kubernetes