windows下忘记root密码

时间:2014-07-21 00:36:13   收藏:0   阅读:368

1-->在DOS窗口下输入net stop mysql57

2-->切换到mysql的bin目录,运行mysqld --skip-grant-tables

3-->新开DOS,切换到bin目录,运行mysql -u root

4-->

use mysql 
update user set password=password("new_pass") where user="root"; 
flush privileges; 
exit;

windows下忘记root密码,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!