Plugin ‘InnoDB’ init function returned error.Could not start the service MySQL 解決方案

來源:互聯網
上載者:User

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內容也刪除

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.