windows下XAMPP中Mysql無法啟動的問題【加急】

來源:互聯網
上載者:User
關鍵字 php mysql sql windows shell
已嘗試:
刪除data中的ibdata1
添加innodb_force_recovery=1或innodb_force_recovery=4
修改port3306為其他
都不起作用。

其中:
添加innodb_force_recovery=1或innodb_force_recovery=4後,會彈出mysqld.exe已停止工作的新問題。

線上求解

以下是Logs中的錯誤報表:
2016-04-28 14:33:51 1a84 InnoDB: Warning: Using innodb_additional_mem_pool_size is DEPRECATED. This option may be removed in future releases, together with the option innodb_use_sys_malloc and with the InnoDB's internal memory allocator.
2016-04-28 14:33:52 6788 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2016-04-28 14:33:52 6788 [Note] InnoDB: The InnoDB memory heap is disabled
2016-04-28 14:33:52 6788 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2016-04-28 14:33:52 6788 [Note] InnoDB: Memory barrier is not used
2016-04-28 14:33:52 6788 [Note] InnoDB: Compressed tables use zlib 1.2.3
2016-04-28 14:33:52 6788 [Note] InnoDB: Using generic crc32 instructions
2016-04-28 14:33:52 6788 [Note] InnoDB: Initializing buffer pool, size = 16.0M
2016-04-28 14:33:52 6788 [Note] InnoDB: Completed initialization of buffer pool
2016-04-28 14:33:52 6788 [Note] InnoDB: Restoring page 0 of tablespace 0
2016-04-28 14:33:52 6788 [Warning] InnoDB: Doublewrite does not have page_no=0 of space: 0
2016-04-28 14:33:52 6788 [ERROR] InnoDB: space header page consists of zero bytes in data file C:xamppmysqldataibdata1
2016-04-28 14:33:52 6788 [ERROR] InnoDB: Could not open or create the system tablespace. If you tried to add new data files to the system tablespace, and it failed here, you should now edit innodb_data_file_path in my.cnf back to what it was, and remove the new ibdata files InnoDB created in this failed attempt. InnoDB only wrote those files full of zeros, but did not yet use them in any way. But be careful: do not remove old data files which contain your precious data!
2016-04-28 14:33:52 6788 [ERROR] Plugin 'InnoDB' init function returned error.
2016-04-28 14:33:52 6788 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2016-04-28 14:33:52 6788 [Note] Plugin 'FEEDBACK' is disabled.
2016-04-28 14:33:52 6788 [ERROR] Unknown/unsupported storage engine: InnoDB
2016-04-28 14:33:52 6788 [ERROR] Aborting

以下是xampp控制台中的錯誤報表:
14:35:07 [mysql] Attempting to start MySQL app...
14:35:08 [mysql] Status change detected: running
14:35:08 [mysql] Status change detected: stopped
14:35:08 [mysql] Error: MySQL shutdown unexpectedly.
14:35:08 [mysql] This may be due to a blocked port, missing dependencies,
14:35:08 [mysql] improper privileges, a crash, or a shutdown by another method.
14:35:08 [mysql] Press the Logs button to view error logs and check
14:35:08 [mysql] the Windows Event Viewer for more clues
14:35:08 [mysql] If you need more help, copy and post this
14:35:08 [mysql] entire log window on the forums

回複內容:

已嘗試:
刪除data中的ibdata1
添加innodb_force_recovery=1或innodb_force_recovery=4
修改port3306為其他
都不起作用。

其中:
添加innodb_force_recovery=1或innodb_force_recovery=4後,會彈出mysqld.exe已停止工作的新問題。

線上求解

以下是Logs中的錯誤報表:
2016-04-28 14:33:51 1a84 InnoDB: Warning: Using innodb_additional_mem_pool_size is DEPRECATED. This option may be removed in future releases, together with the option innodb_use_sys_malloc and with the InnoDB's internal memory allocator.
2016-04-28 14:33:52 6788 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2016-04-28 14:33:52 6788 [Note] InnoDB: The InnoDB memory heap is disabled
2016-04-28 14:33:52 6788 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2016-04-28 14:33:52 6788 [Note] InnoDB: Memory barrier is not used
2016-04-28 14:33:52 6788 [Note] InnoDB: Compressed tables use zlib 1.2.3
2016-04-28 14:33:52 6788 [Note] InnoDB: Using generic crc32 instructions
2016-04-28 14:33:52 6788 [Note] InnoDB: Initializing buffer pool, size = 16.0M
2016-04-28 14:33:52 6788 [Note] InnoDB: Completed initialization of buffer pool
2016-04-28 14:33:52 6788 [Note] InnoDB: Restoring page 0 of tablespace 0
2016-04-28 14:33:52 6788 [Warning] InnoDB: Doublewrite does not have page_no=0 of space: 0
2016-04-28 14:33:52 6788 [ERROR] InnoDB: space header page consists of zero bytes in data file C:xamppmysqldataibdata1
2016-04-28 14:33:52 6788 [ERROR] InnoDB: Could not open or create the system tablespace. If you tried to add new data files to the system tablespace, and it failed here, you should now edit innodb_data_file_path in my.cnf back to what it was, and remove the new ibdata files InnoDB created in this failed attempt. InnoDB only wrote those files full of zeros, but did not yet use them in any way. But be careful: do not remove old data files which contain your precious data!
2016-04-28 14:33:52 6788 [ERROR] Plugin 'InnoDB' init function returned error.
2016-04-28 14:33:52 6788 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2016-04-28 14:33:52 6788 [Note] Plugin 'FEEDBACK' is disabled.
2016-04-28 14:33:52 6788 [ERROR] Unknown/unsupported storage engine: InnoDB
2016-04-28 14:33:52 6788 [ERROR] Aborting

以下是xampp控制台中的錯誤報表:
14:35:07 [mysql] Attempting to start MySQL app...
14:35:08 [mysql] Status change detected: running
14:35:08 [mysql] Status change detected: stopped
14:35:08 [mysql] Error: MySQL shutdown unexpectedly.
14:35:08 [mysql] This may be due to a blocked port, missing dependencies,
14:35:08 [mysql] improper privileges, a crash, or a shutdown by another method.
14:35:08 [mysql] Press the Logs button to view error logs and check
14:35:08 [mysql] the Windows Event Viewer for more clues
14:35:08 [mysql] If you need more help, copy and post this
14:35:08 [mysql] entire log window on the forums

重設mysql的啟動配置 刪除所有ibdata1 ibdataXXib_logfile0 ib_logfile1 ..等等 重啟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.