completely uninstall mysql

1. Right-click in the lower left corner of the computer -> Programs and Features -> Uninstall mysql server!

2. Then delete the my.ini file and all files in the mysql folder (can't find it, it means that it has been deleted when it was uninstalled earlier)

3. Run the "regedit" file, as shown in the figure, to open the registry:

  3.1 Delete HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Eventlog\Application\MySQL folder

  3.2 Delete HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Services\Eventlog\Application\MySQL folder

  3.3 Delete the folder of HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\MySQL

  (No need to delete it)

  If you have trouble finding folders, you can do this:

   

   Copy the address of 3.1-3.3 to the navigation bar and press Enter.

   You can also choose Edit -> Find -> Set as item to find mysql (and then delete)

4. Delete the "C:\ProgramData\MySQL" file under the C drive. If it cannot be deleted, use 360 ​​to smash it.

 The programData file is hidden by default, and can be seen after the setting is displayed.

 Or directly copy the address above to the address bar and press Enter to enter!

 After deleting, restart the computer and reinstall the MYsql database should be successful.

 

  

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325029462&siteId=291194637