1. 在控制面板中卸載mysql
2. 打開注冊表,運行regedit, 刪除mysql信息
HKEY_LOCAL_MACHINE-> SYSTEM->CurrentContolSet->Services->EventLog->Application->Mysql
HKEY_LOCAL_MACHINE-> SYSTEM->CurrentContolSet->Services->Mysql
3.刪除Mysql安裝信息。
(1) C:\Documents and Settings\All Users\Application Data\Mysql
(2)刪除Mysql安裝目錄,默認在C盤。找不到的話可以搜my.ini
4.重啟電腦后,重新安裝Mysql Server即可。