- Run as Administrator console, shut down MySQL service
net stop mysql
- Skip the grant tables, conduct free secret login
mysqld
- Open a new console window with administrator, and then password-free login Mysql
mysql
- Mysql database using MySQL
use mysql
- To change the root password is empty. Special attention authentication_string = '' equal sign is single quotes
update mysql.user set authentication_string=' ' where user='root';
- Query root on the basis of the previous step on the user group and password
select host,user,authentication_string from mysql.user;
- Open a new window to start the MySQL service
net start mysql