Fully uninstall mysql (stop services, uninstall related programs, delete registries)

Source: Internet
Author: User
1. Stop Service MySQL2. uninstall mysql-related programs 3. Delete the Registry (run-regedit), machine-system-controlset001controlset002currentcontrolset-services-eventlog-applications-MySQL-related files 4. Delete the MySQL installation directory and save the database data directory (C: Documentsand

1. stop Service MySQL 2. uninstall mysql-related programs 3. delete Registry (run-regedit), machine-system-controlset001/controlset002/currentcontrolset-services-eventlog-applications-MySQL related file 4. delete the MySQL installation directory and the directory (C: \ Documents ents and

1. Stop MySQL 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.