How to uninstall mysql tutorial (complete uninstall)

Step 1: Shut down the MySQL service

Right-click [Computer], select [Manage], and open the "Computer Management" interface

Select [Services] in [Services and Applications], find [mysql] on the right, right click, and select [Stop]

 

Step 2: Uninstall the mysql software

You can uninstall it in the control panel, uninstall all mysql related, and uninstall the mysql installation package, and re-download the installation package when you install it later

 Step 3: Delete all the files in the physical location of MySQL on the computer hard disk
1. After uninstalling, delete all the remaining files in C:\Program Files (x86)\MySQL, and delete the mysql folder. 2. Delete HKEY_LOCAL_MACHINE
\ SYSTEM\ControlSet002\Services\Eventlog\Application\MySQL folder, if not, you don’t need to delete it.
3. Delete all the files in C:\ProgramData\MySQL under the C disk. If you can’t delete them, you can use 360 ​​to smash them. The programData file is hidden by default. It can be seen after setting the display

 4. The key! ! ! ! Delete the folder under C:\Documents and Settings\All Users\Application Data\MySQL, be sure to delete, you can copy and paste directly, you will see this folder

Note: You can use the keyword search function that comes with the window system to find associated files

 

Step 4: MySQL Registry Information

Note: This step is the most cumbersome and the most critical. Many people cannot reinstall successfully because they have not cleaned up the registry information in this step.

1. Windows+R to run the " regedit " file and open the registry

 

 2. Delete the registry: HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Eventlog\Application\MySQL folder, open one by one according to this path

 

Step 5: Restart the computer
so that the MySQL software can be reinstalled!
Part two:

Completely delete mysql Method
1. First, stop the MySQL service in the service (Start->Control Panel->Administrative Tools->Service). Open the Control Panel - Add and Remove Programs, find MySQL, and uninstall it. Or use 360 ​​Security Guard to uninstall it. You can also use the installation program of mysql to delete

2. Uninstall the installed MYSQL, but this is only half of the uninstallation of MySQL, and the important other half is to clean up the registry. We want to enter the registry and enter regedit in Start-Run to open the registry

3. Find the items about MYSQL and delete them all. You need to search item by item and delete them all, so that it can be installed during installation. In fact, the MySQL items in the registry are these three items:
HKEY_LOCAL_MACHINE/SYSTEM/ControlSet001/Services/Eventlog/Application/MySQL

HKEY_LOCAL_MACHINE/SYSTEM/ControlSet002/Services/Eventlog/Application/MySQL
HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Eventlog/Application/MySQL

4. Also delete the my.ini file under C:/WINDOWS!

In this way, after deleting the above four items, MySQL is basically completely uninstalled. If you are still not at ease, you can search for mysql on the C drive and delete all related items.

Guess you like

Origin blog.csdn.net/m0_59186440/article/details/129363641
Recommended