1、net stop mysql
再开一个窗口
2、mysqld-nt --skip-grant-tables;
3、mysql -u root
use mysql
update user set password=password("new_pass") where user="root";
flush privileges;
exit
5、重启数据库
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/26764973/viewspace-1443608/
,如需转载,请注明出处,否则将追究法律责任。