1.,到控制台裡面先把mysql刪除.
2.到c盤C:\Program Files目錄下把mysql目錄刪除.
3.如果在其他盤還有設定目錄也要刪除.空目錄也要刪除.刪除C:/Documents and Settings/All Users/Application Data/MySQL/MySQL Server 5.1/data目錄下ib_logfile0、ib_logfile1兩個檔案刪除,順便說句,此目錄下有個err檔案,是以主機名稱命名的,裡面記載著錯誤資訊,類似下面這段:
InnoDB: The first specified data file E:/Data/ibdata1 did not exist:
InnoDB: a new database to be created!
090501 19:20:08 InnoDB: Setting file E:/Data/ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Error: log file ./ib_logfile0 is of different size 0 48234496 bytes
InnoDB: than specified in the .cnf file 0 17825792 bytes!
090501 19:20:09 [ERROR] Plugin 'InnoDB' init function returned error.
090501 19:20:09 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
090501 19:20:09 [ERROR] Unknown/unsupported table type: INNODB
090501 19:20:09 [ERROR] Aborting
090501 19:20:09 [Warning] Forcing shutdown of 1 plugins
090501 19:20:09 [Note] E:/Program Files/MySQL/MySQL Server/bin/mysqld: Shutdown complete
4.到regedit把註冊表
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
有的話,全部刪除!
(技巧:用F3迴圈尋找“mysql”)
5.如果工作管理員裡有關mysql內容也刪除