-
cmd -->cd 安装路径/bin
-
C:\Program Files\MySQL\MySQL Server 5.6\bin>mysql -hlocalhost -uroot
-
use mysql;
update user set password=password('newPwd') where user='root' and host='localhost';
flush privileges;
本文转自yunlielai51CTO博客,原文链接:http://blog.51cto.com/4925054/1576896,如需转载请自行联系原作者