Start mysql.exe flash back problem solving

Step 1: Find the configuration file my.ini, and then use Notepad to open

             Find my.ini file: Open My Computer, search directly in the search box my.ini;

                                               Press the path shown in Figure find my.ini file (ProgramData folder can not be found, because this is hidden, click on this computer -> Organization -> Options -> View -> Advanced settings in the Show hidden files, folders and drives -> OK, and then click c drive you can find the folder a)

                                               

Step two: After opening, mysqld keyword search, the find, add skip-grant-tables in the following mysqld, save and exit.

                                  

    PS: If prompted to keep saving, you can cut file to your desktop, save the changes and then copied to the mySQL directory.

The third step: restart mysql service after save, right-click Computer -> Manage -> Services -> Mysql, then restart.

Step four: then run cmd, enter mysql -u root -p password you can not log on, and appear password: time can directly enter into the

Guess you like

Origin www.cnblogs.com/0901-hcx/p/11571826.html