MYSQL服務無法啟動:InnoDB: .\ibdata1 can't be opened in read-write mode,innodbibdata1

來源:互聯網
上載者:User

MYSQL服務無法啟動:InnoDB: .\ibdata1 can't be opened in read-write mode,innodbibdata1

今天在那做實驗倒騰mysql資料庫,後來探索服務無法啟動,查看日誌報錯如下:


2015-01-07 17:48:54 9136 [ERROR] InnoDB: .\ibdata1 can't be opened in read-write mode
2015-01-07 17:48:54 9136 [ERROR] InnoDB: The system tablespace must be writable!
2015-01-07 17:48:54 9136 [ERROR] Plugin 'InnoDB' init function returned error.
2015-01-07 17:48:54 9136 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2015-01-07 17:48:54 9136 [ERROR] Unknown/unsupported storage engine: InnoDB
2015-01-07 17:48:54 9136 [ERROR] Aborting


解決方案:

1、開啟工作管理員終止mysqld進程;

2、開啟mysql安裝目錄的data檔案夾,刪除以下2個檔案:

ib_logfile0和ib_logfile1

3、重新啟動mysql


--------------------------------------

Dylan    Presents.

相關文章

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.