qileilove

blog已经转移至github,大家请访问 http://qaseven.github.io/

破解本地MySQL数据库密码

 破解本地MySQL数据库密码:
  1.用系统管理员登陆系统。
  2.停止MySQL的服务。
  Windows:运行net stop mysql关闭数据库
  3.进入命令窗口,然后进入 MySQL的安装目录,比如我的安装目录是c:\mysql,进入C:\mysql\bin
  4.跳过权限检查启动MySQL,
  c:\mysql\bin>mysqld-nt ––skip-grant-tables
  或则:c:\mysql\bin>mysqld ––skip-grant-tables
  mysqld.exe是微软Windows MySQL server数据库服务器相关程序。mysqld-nt.exe是MySQL Daemon数据库服务相关程序。
  5.[未验证]
  重新打开一个窗口
  进入c:\mysql\bin目录,设置root的新MySQL数据库密码
  c:\mysql\bin>mysqladmin -u root flush-privileges password "newpassword"
  c:\mysql\bin>mysqladmin -u root -p shutdown
  将newpassword替为自己的新密码

posted on 2014-11-11 10:13 顺其自然EVO 阅读(559) 评论(0)  编辑  收藏 所属分类: 数据库

<2014年11月>
2627282930311
2345678
9101112131415
16171819202122
23242526272829
30123456

导航

统计

常用链接

留言簿(55)

随笔分类

随笔档案

文章分类

文章档案

搜索

最新评论

阅读排行榜

评论排行榜