Completely uninstall Mysql (stop service, uninstall related programs, delete registry _mysql

Source: Internet
Author: User
Tags mysql in

1. Stop service MySQL

2. Uninstall MySQL-related programs

3. Delete Registry (run->regedit),machine->system->controlset001/controlset002/currentcontrolset->services-> Eventlog->applications->mysql Related Documents

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. Reboot the computer, uninstall complete

Other supplements:

Sometimes MySQL can not completely uninstall, this time must be some way to remove the registry and some remnants of the file, before reinstalling to be successful!

First (1) Start-mysql-mysql server 5.1-mysql server Instance Config Wizard--->remove Instance.
(2) Click [Start]--[Run], enter services.msc carriage return, enter Service Management window.
(3) Services to find MySQL services, the MySQL service to stop.
(4) Click [Start]--[Run], enter rundll32.exe shell32.dll,control_rundll carriage enter into Control Panel, find add removal program, find MySQL choose Uninstall.

1, Control Panel--"All Control Panel items--" procedures and functions, uninstall MySQL server!

2, and then delete the MySQL folder under the My.ini files and all files

3, run "regedit" file, such as figure, open the registry

Delete registry data, through Regedit, delete the following several files "can also search 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 in the display

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. The Hkey_local_machine\system\currentcontrolset\services\eventlog\application\mysql folder. As shown in the lower end of the address. If no, you don't have to delete it.

6, delete the "C:\ProgramData\MySQL" under the C disk, so the file, if the deletion will be broken down with 360, the Programdata file is hidden by default, set the display is visible, or directly copy the address to the Address bar can enter! Reboot the computer after the deletion, and the MySQL database should be installed successfully.

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.