`
housaregod6982
  • 浏览: 11827 次
最近访客 更多访客>>
文章分类
社区版块
存档分类
最新评论

MySQL忘记密码恢复密码的实现方法

 
阅读更多

一、服务器环境

1、系统windows2003 中文企业版 sp2

2、mysql 5.1.55

3、php 5.2.17

4、IIS 6.0

二、破解过程

1、停止mysql服务(以管理员身份,在cmd命令行下运行)使用如下命令:
net stop mysql

 

 2、.使用命令启动mysql数据库,命令如下

mysqld --skip-grant-tables

 

 3.新开一个cmd窗口,进行如下命令操作

1、mysql -uroot
2、update mysql.user set password=password('你的密码') where user='root;

如图:

 

4、打开任务管理器,停止mysql,mysqld进程,使用net start mysql启动mysqld服务,就可以使用root用户 root密码进入数据库了(这步可以省略重启机器)

 

....................................................................

一、服务器环境

1、系统windows2003 中文企业版 sp2

2、mysql 5.1.55

3、php 5.2.17

4、IIS 6.0

二、破解过程

1、停止mysql服务(以管理员身份,在cmd命令行下运行)使用如下命令:
net stop mysql

 

 2、.使用命令启动mysql数据库,命令如下

mysqld --skip-grant-tables

 

 3.新开一个cmd窗口,进行如下命令操作

1、mysql -uroot
2、update mysql.user set password=password('你的密码') where user='root;

如图:

 

4、打开任务管理器,停止mysql,mysqld进程,使用net start mysql启动mysqld服务,就可以使用root用户 root密码进入数据库了(这步可以省略重启机器)

来自:http://www.verydemo.com/demo_c152_i854.html

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics