net stop mysql
mysqld --skip-grant-tables
再打开一个cmd
mysql
use mysql
update user set authentication_string=password("123456") where user="root";
flush privileges;
quit
net stop mysql
mysqld --skip-grant-tables
再打开一个cmd
mysql
use mysql
update user set authentication_string=password("123456") where user="root";
flush privileges;
quit