Completely uninstall MySQL stop service, uninstall related programs, delete registry

Source: Internet
Author: User


This section focuses on the steps to completely uninstall MySQL, including stopping services, uninstalling related programs, deleting the registry, and more


1. Stop service MySQL



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 where the database data is saved (C:\Documents and Settings\All Users.windows\application data or C:/documentsand Settings/all Users/application Data), note that these directories may be hidden and need to set folder options to show hidden directories



5. Restart the computer, uninstall complete



Other additions:



Sometimes MySQL can not completely uninstall, this time must be removed by some means of the registry and some residual files, and then can be re-installed to succeed!



First (1) Start-mysql-mysql server 5.1-mysql server Instance Config Wizard--->remove Instance.
(2) Click [Start]--[Run], enter Services.msc return, enter the Service Management window.
(3) service inside to find MySQL service, will MySQL service to stop.
(4) Click [Start]--[Run], input rundll32.exe shell32.dll,Control_RunDLL Enter the control Panel, find the Add remove program, find MySQL select Uninstall.



1, Control Panel-"All Control Panel item--" program and function, uninstall MySQL server!


2. Then delete the My.ini file and all files under the MySQL folder


3. Run the "regedit" file, open the registry



Delete the registry data, delete the following files via regedit "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 General Service will be in the same name (the name is usually MySQL) here to display



4. Delete Hkey_local_machine\system\controlset001\services\eventlog\application\mysql folder






5. Delete the Hkey_local_machine\system\controlset002\services\eventlog\application\mysql folder. The Hkey_local_machine\system\currentcontrolset\services\eventlog\application\mysql folder. Low-end address. If there is no need to delete it.






6, delete the "C:\ProgramData\MySQL" under the C disk so the file, if not deleted with smash can be, the ProgramData file is hidden by default, the settings are visible after the display, or directly copy the upper address to the Address bar enter! Restart the computer after deletion, re-install the MySQL database should be successful.






Completely uninstall MySQL stop service, uninstall related programs, delete registry


Related Article

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.