Home >Database >Mysql Tutorial >MySQL忘记密码处理方法解决办法_MySQL

MySQL忘记密码处理方法解决办法_MySQL

WBOY
WBOYOriginal
2016-06-01 13:48:011065browse

bitsCN.com MySQL忘记密码处理方法解决办法:
1。停止mysql服务。//打开命令行窗口,停止mysql服务: Net stop mysql
2。启动mysql,一般到mysql的安装路径,找到 mysqld-nt.exe
   执行:mysqld-nt --skip-grant-tables 当前窗口将会停止。
3。另外打开一个命令行窗口,进入MYSQL的安装位置下BIN目录,运行mysql
4。输入如下命令:
  >use mysql
  >update user set password=password("new_password") where user="root";
  >flush privileges;
  >exit
6。用Ctrl+Alt+Del,找到mysqld-nt的进程杀掉它,在重新启动mysql-nt服务,就可以用新密码登录了 bitsCN.com

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn