我知道這個問題已經在這裏問了很多次了,我搜索了很多,發現了各種答案,但仍然無法解決我的問題。MySQL意外關機
Apache在80端口上運行成功,但是當我嘗試啓動mysql時,它給了我下面的錯誤信息。
13:36:13 [mysql] Error: MySQL shutdown unexpectedly.
13:36:13 [mysql] This may be due to a blocked port, missing dependencies,
13:36:13 [mysql] improper privileges, a crash, or a shutdown by another method.
13:36:13 [mysql] Press the Logs button to view error logs and check
13:36:13 [mysql] the Windows Event Viewer for more clues
13:36:13 [mysql] If you need more help, copy and post this
13:36:13 [mysql] entire log window on the forums
日誌文件
140215 13:36:13 [Note] Plugin 'FEDERATED' is disabled.
140215 13:36:13 InnoDB: The InnoDB memory heap is disabled
140215 13:36:13 InnoDB: Mutexes and rw_locks use Windows interlocked functions
140215 13:36:13 InnoDB: Compressed tables use zlib 1.2.3
140215 13:36:13 InnoDB: Initializing buffer pool, size = 16.0M
140215 13:36:13 InnoDB: Completed initialization of buffer pool
InnoDB: Error: space header page consists of zero bytes in data file D:\xampp\mysql\data\ibdata1
140215 13:36:13 InnoDB: Could not open or create data files.
140215 13:36:13 InnoDB: If you tried to add new data files, and it failed here,
140215 13:36:13 InnoDB: you should now edit innodb_data_file_path in my.cnf back
140215 13:36:13 InnoDB: to what it was, and remove the new ibdata files InnoDB created
140215 13:36:13 InnoDB: in this failed attempt. InnoDB only wrote those files full of
140215 13:36:13 InnoDB: zeros, but did not yet use them in any way. But be careful: do not
140215 13:36:13 InnoDB: remove old data files which contain your precious data!
140215 13:36:13 [ERROR] Plugin 'InnoDB' init function returned error.
140215 13:36:13 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
140215 13:36:13 [ERROR] Unknown/unsupported storage engine: InnoDB
140215 13:36:13 [ERROR] Aborting
請指導我如何解決這個問題。
問候, 阿夫塔卜
您可能損壞了您的數據庫文件(D:\ xampp \ mysql \ data \ ibdata1)?或者你指向一個錯誤的路徑 –
我發現這在後''ibdata'文件刪除它將正常工作,這就是爲什麼我刪除它。 –
當您刪除ibdata1時,是否還從MySQL目錄中刪除了ib_logfile0,ib_logfile1?如果不嘗試這樣做讓InnoDB再次加載並且MySQL出現。爲了預防,您可以保留這些文件的副本,而不是直接刪除 – shinesecret