重裝mysql無法啟動服務的問題

來源:互聯網
上載者:User

Linux下mysql重裝後無法重啟解決辦法

之前裝的mysql5.1,但是經過系統還原後服務沒有了,乾脆升級到5.5,但是安裝好了,配置時最後一步就是啟動不了!

查看日誌:programdata/data/pc.err發現:

111121 22:16:50  InnoDB: Log file .ib_logfile0 did not exist: new to be created
InnoDB: Setting log file .ib_logfile0 size to 10 MB
InnoDB: Database physically writes the file full: wait…
111121 22:16:50  InnoDB: Log file .ib_logfile1 did not exist: new to be created
InnoDB: Setting log file .ib_logfile1 size to 10 MB
InnoDB: Database physically writes the file full: wait…
111121 22:16:50 InnoDB: Cannot initialize created log files because
111121 22:16:50 InnoDB: data files are corrupt, or new data files were
111121 22:16:50 InnoDB: created when the database was started previous
111121 22:16:50 InnoDB: time but the database was not shut down
111121 22:16:50 InnoDB: normally after that.
111121 22:16:50 [ERROR] Plugin ‘InnoDB’ init function returned error.
111121 22:16:50 [ERROR] Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed.
111121 22:16:50 [ERROR] Unknown/unsupported storage engine: INNODB
111121 22:16:50 [ERROR] Aborting

在網上一查,原來要將ib_logfile0,ib_logfile1,還有ibdata1這三個檔案刪掉才行,它們分別在data和programdata目錄中(在配置時由你指定的)。


windows下mysql重裝後無法重啟解決辦法

解決方案:

1: 先卸載mysql, 手動將其安裝目錄裡沒有刪除乾淨的檔案全部刪除.

2: 將C:/ProgramData/MySQL 裡有關mqsql的檔案全部刪除.

3: 重新安裝 mysql 程式.

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.