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.