Home > Database > Mysql Tutorial > body text

Windows下,MySQL root用户忘记密码解决方案_MySQL

WBOY
Release: 2016-06-01 13:06:13
Original
849 people have browsed it

同时打开2个命令行窗口,并按如下操作:

.在第一个“命令行窗口”输入:

cd  D:/Program Files/MySQL/MySQL Server 5.5/bin

net stop mysql

mysqld --skip-grant-tables

.在第二个“命令行窗口”输入:

cd  D:/Program Files/MySQL/MySQL Server 5.5/bin

mysql -uroot -p

mysql> update mysql.user set password=PASSWORD("新密码") where User="root";

mysql> flush privileges;

mysql> exit

net start mysql

source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!