MySQL中root用户密码找回的方法
1、关闭服务器: net stop mysql
2、重启服务器: 使用权限跳过命令: mysqld.exe --skip-grant-tables
3、新开客户端,使用mysql.exe直接进入
4、修改root用户的密码
update user set password=password('新密码') where user='root' and host='localhost';
5、退出系统: 关闭mysql服务器,重启服务器(进程管理)
6、正常启动服务器: net start mysql
7、使用新的root密码进入