Home > Database > Mysql Tutorial > windows下MySql密码重置_MySQL

windows下MySql密码重置_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-01 13:38:00
Original
1218 people have browsed it

bitsCN.com


windows下MySql密码重置

 

Windows下操作    

1.关闭正在运行的MySQL。 

 

2.打开DOS窗口,转到mysql/bin目录。 

 

3.输入mysqld --skip-grant-tables回车。

 

如果没有出现提示信息,那就对了。 

 

4.再开一个DOS窗口,转到mysql/bin目录。 

 

5.输入mysql回车,如果成功,将出现MySQL提示符 > 

 

6. 连接权限数据库>use mysql; 

 

6.改密码:> update user set password=password("520") where user="root"; 

 

7.刷新权限>flush privileges; 

 

8.退出 > /q 

9.注销系统,再进入。
 

bitsCN.com
Related labels:
Statement of this Website
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
Latest Issues
Can Windows be learned?
From 1970-01-01 08:00:00
0
0
0
Install PHP in windows environment
From 1970-01-01 08:00:00
0
0
0
zookeeper extension under windows
From 1970-01-01 08:00:00
0
0
0
Can I play vim happily on Windows?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template