Home  >  Article  >  Database  >  本地无root权限万能改MYSQL密码法_MySQL

本地无root权限万能改MYSQL密码法_MySQL

WBOY
WBOYOriginal
2016-06-01 13:47:42859browse

bitsCN.com

打开CMD首先停止mysql服务

net stop mysql

进入mysql安装目录下的bin文件夹,然后输入

mysqld-nt --skip-grant-tables

跳过密码检测

然后另外新打开一个cmd窗口

输入mysql 直接回车可以以root权限进入mysql

use mysql

update user set password=password("新密码") where user="root";

flush privileges;

如果无错误提示,密码即可更改成功。

 

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