This problem has been committed twice! The second time is it tortured by the going crazy, so in just to solve the success of the time, take advantage of hot, hurriedly write down the solution to avoid recidivism! ~
The solution is as follows:
1. If the MySQL service is started, stop it: Enter the net stop MySQL under the DOS window, and if the MySQL service does not start, open the DOS window directly without typing.
2, in the current DOS window, switch to the MySQL bin directory, and then enter Mysqld-nt--skip-grant-tables;
3. Open a DOS window again, enter Mysql-u root
4. Enter the following code:
12set password=password ("new_pass"where user ="root"34
5, use the Task Manager, find the MYSQLD-NT process, end the process, if the Task manager in the process itself is the end of, then no tube ~
6, you are done ~
Solutions to problems with MySQL forgetting the root password causing an unreachable connection