How to properly uninstall MySQL completely

When MySQL is reinstalled,  the problem that the start service cannot be started occurs because the old MySQL is not completely uninstalled.

The following steps begin to uninstall Mysql:

1. Uninstall mysql normally ( as long as it is to uninstall the software, such as 360 , etc.), but it cannot be completely uninstalled.

Second, first stop the MYSQL service in the widnows service. The details are as follows: right-click the computer , click Manage , enter services and applications, click Services , and find MYSQL . If there is no MYSQL, skip directly to the third step;

3. Delete these two folders, open the C drive, enter Program Files  , find the MYSQL folder, and delete it. Go to Program Data (this folder is a hidden file),  find the mysql folder, delete it (this is simple, not for the picture).

4. Now clear your MYSQL service in the registry (regedit).

          Find run (shortcut key: windows key + R), enter regedit and confirm, there are several places:


HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\eventlog\Application\MySQL deletes the MyQSL directory;
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Services\eventlog\Application\MySQL deletes the MyQSL directory;
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\eventlog\Application\MySQL deletes the MyQSL directory ; 

  Note: There may be no MySQL in the subdirectories of ControlSet002 and ControlSet003, so there is no need to delete them. The Software (this folder is at the same level as ControlSet001) may also contain MYSQL, if there is, delete it, if not, don't use it.

Select the registry folder, right-click, look for the "mysql " keyword

 

Fifth, restart the computer and it will be ok . Key steps are in red font.

6. Reinstalled MYSQL.

Guess you like

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