This section describes how to completely uninstall mysql, including stopping the service, uninstalling related programs, and deleting the registry. 1. stop the service.
2. uninstall mysql-related programs
3. delete the registry (run-> regedit), machine-> system-> controlset001/controlset002/currentcontrolset-> services-> eventlog-> applications-> MySQL-related files
4. delete the MySQL installation directory and the Directory (C: \ Documents Ents and Settings \ All Users. WINDOWS \ Application Data or C:/Documentsand Settings/All Users/Application Data). Note that these directories may be hidden. you need to set folder options to display hidden directories.
5. restart the computer and uninstall it.
Other supplements:
Sometimes MySQL cannot be fully uninstalled. in this case, you must delete the registry and some residual files in some ways before re-installing them!
First (1) start-MySQL Server 5.1-MySQL Server Instance Config Wizard ---> Remove Instance.
(2) Click [start] -- [run], enter services. msc and press enter to enter the service management window.
(3) Find the MySQL service in the service and stop the MySQL service.
(4) Click [start] -- [run], enter rundll32.exe shell32.dll, and press Control_RunDLL to enter the control panel. find the add and delete program and find MySQL and choose Uninstall.
1. control panel-all control panel items-programs and functions, uninstall mysql server!
2. delete the my. ini file and all files in the mysql folder.
3. run the "regedit" file to open the registry
Delete the registry data. use regedit to delete the following files [you can also search for mysql in the registry]: HKEY_LOCAL_MACHINE/SYSTEM/ControlSet001/Services/Eventlog/Applications/MySQL
HKEY_LOCAL_MACHINE/SYSTEM/ControlSet002/Services/Eventlog/Applications/MySQL
HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Eventlog/Applications/MySQL
HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services
4. delete the HKEY_LOCAL_MACHINE \ SYSTEM \ ControlSet001 \ Services \ Eventlog \ Application \ MySQL folder.
5. delete the HKEY_LOCAL_MACHINE \ SYSTEM \ ControlSet002 \ Services \ Eventlog \ Application \ MySQL folder. HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ Eventlog \ Application \ MySQL folder. Low-end address. If not, you do not need to delete it.
6. delete the C: \ ProgramData \ MySQL file under drive C. If the file cannot be deleted, use 360 to smash it. the programData file is hidden by default, you can directly copy the above address to the address bar and press enter! After the deletion, restart the computer and reinstall the MYsql database.