net start mysql
netstop mysql打开CMD 输入mysqld --skip-grant-tables;
新开一个CMD 输入mysql -uroot
然后输入:use mysql;update mysql.user set password=password('123456') where user='root';然后输入:flush privileges;