Plugin 'innodb' init function returned error. cocould not start the service MySQL Solution

Source: Internet
Author: User

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

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.