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密码进入

posted @ 2016-03-24 09:13  chenjiacheng  阅读(178)  评论(0编辑  收藏  举报