1. In the control panel, delete mysql first.
2. Delete the mysql directory under drive C: \ Program Files.
3. delete the directory if you have another disk. delete the empty directory. delete the ib_logfile0 and ib_logfile1 files in the C:/Documents and Settings/All Users/Application Data/MySQL Server 5.1/data directory. By the way, this directory contains an err file named after the host name, which contains the error message, similar to the following section:
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' registry 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 Server/bin/mysqld: Shutdown complete
4. Go to regedit to set 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
If yes, delete all!
(Tip: Use F3 to search for "mysql" cyclically ")
5. If mysql content in the task manager is also deleted