mysql - 错误 : MySQL shutdown unexpectedly - XAMPP

标签 mysql xampp

我在 win10 机器上使用 xampp 运行 mysql 时遇到问题。 这是 xampp 消息:

Error: MySQL shutdown unexpectedly.
1:33:01  [mysql]    This may be due to a blocked port, missing dependencies, 
1:33:01  [mysql]    improper privileges, a crash, or a shutdown by another method.
1:33:01  [mysql]    Press the Logs button to view error logs and check
1:33:01  [mysql]    the Windows Event Viewer for more clues
1:33:01  [mysql]    If you need more help, copy and post this
1:33:01  [mysql]    entire log window on the forums

这是我的 mysql.log:

017-10-18 03:52:49 efc 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.
2017-10-18  3:52:49 3836 [Note] InnoDB: innodb_empty_free_list_algorithm has been changed to legacy because of small buffer pool size. In order to use backoff, increase buffer pool at least up to 20MB.
2017-10-18  3:52:49 3836 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2017-10-18  3:52:49 3836 [Note] InnoDB: The InnoDB memory heap is disabled
2017-10-18  3:52:49 3836 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2017-10-18  3:52:49 3836 [Note] InnoDB: _mm_lfence() and _mm_sfence() are used for memory barrier
2017-10-18  3:52:49 3836 [Note] InnoDB: Compressed tables use zlib 1.2.3
2017-10-18  3:52:49 3836 [Note] InnoDB: Using generic crc32 instructions
2017-10-18  3:52:49 3836 [Note] InnoDB: Initializing buffer pool, size = 16.0M
2017-10-18  3:52:49 3836 [Note] InnoDB: Completed initialization of buffer pool
2017-10-18  3:52:49 3836 [Note] InnoDB: Restoring page 0 of tablespace 0
2017-10-18  3:52:49 3836 [Warning] InnoDB: Doublewrite does not have page_no=0 of space: 0
2017-10-18  3:52:49 3836 [ERROR] InnoDB: space header page consists of zero bytes in data file C:\xampp\mysql\data\ibdata1
2017-10-18  3:52:49 3836 [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!
2017-10-18  3:52:49 3836 [ERROR] Plugin 'InnoDB' init function returned error.
2017-10-18  3:52:49 3836 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2017-10-18  3:52:49 3836 [Note] Plugin 'FEEDBACK' is disabled.
2017-10-18  3:52:49 3836 [ERROR] Unknown/unsupported storage engine: InnoDB
2017-10-18  3:52:49 3836 [ERROR] Aborting

我尝试重新初始化 mysql 数据文件夹,从中删除 ibdata1、ib_log 文件,但没有成功。 非常感谢任何建议。

最佳答案

通过安装 5.6.35/PHP 5.6.35 - XAMPP 解决

使用 windows 10,xampp 7.2.2 有同样的问题。

  1. 备份了 htdocs 项目
  2. 已卸载 XAMPP 7.2.x
  3. 已安装 XAMPP 5.6.x
  4. 将备份项目粘贴到 htdocs
  5. 遇到Apache端口号问题,然后在httpd.conf中将80改成8080
  6. 工作正常!

关于mysql - 错误 : MySQL shutdown unexpectedly - XAMPP,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46804529/

相关文章:

php - 在 Windows XAMPP 上为 PHP 安装 PERCL GeoIP

php - 如何解决 Laravel - 无法找到驱动程序错误?

Mysql:为什么在这种情况下 WHERE IN 比 JOIN 快得多?

c# - 更改链接到 ListView 中所选项目的文本框中的值后,数据库中的表未更新

javascript - 如何将mysql datetime传递给输入datetime-local

mysql - 如何在mysql中将base32解码为字符串

php - 如何使用 CodeIgniter 解决日期范围搜索

php - 如何将 CMS 集成到现有网站中

php - Magento 黑屏区域设置

MySQL 多用户事务