Fully uninstall mysql (stop service, uninstall related programs, delete registry _ MySQL

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.