XAMPP MySQL 突然停止工作,原因不明
XAMPP MySQL suddenly stopped working for no visible reason
我从昨晚开始就一直在寻找。我找不到其他人遇到我的问题。
我开始MySQL,等待大约3-5秒。它意外关闭。
我检查了错误日志,没有异常。我尝试将 MySQL 备份文件夹复制到数据文件夹,它解决了问题,但我的表已被删除,所以不是一个好的解决方案。我该怎么办?!
日志:
2021-09-30 9:56:23 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2021-09-30 9:56:23 0 [Note] InnoDB: Uses event mutexes
2021-09-30 9:56:23 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2021-09-30 9:56:23 0 [Note] InnoDB: Number of pools: 1
2021-09-30 9:56:23 0 [Note] InnoDB: Using SSE2 crc32 instructions
2021-09-30 9:56:23 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2021-09-30 9:56:23 0 [Note] InnoDB: Completed initialization of buffer pool
2021-09-30 9:56:28 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2021-09-30 9:56:28 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2021-09-30 9:56:28 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2021-09-30 9:56:28 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2021-09-30 9:56:28 0 [Note] InnoDB: Waiting for purge to start
2021-09-30 9:56:28 0 [Note] InnoDB: 10.4.20 started; log sequence number 1259779; transaction id 4016
2021-09-30 9:56:28 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2021-09-30 9:56:28 0 [Note] Plugin 'FEEDBACK' is disabled.
2021-09-30 9:56:28 0 [Note] Server socket created on IP: '::'.
要修复和检索您的数据库数据,您可以尝试以下步骤:
- 将
mysqldata
文件夹复制到:mysqldata_copy
- 删除
mysqldata
文件夹中的所有文件(文件夹除外!)。
- 运行 MariaDB/MySQL 通过 XAMPP
- 文件将在我们的文件夹中自行生成。
- 复制文件:
mysqldata_kopia/ibdata1
并将其粘贴到 mysqldata
文件夹(它将覆盖该文件)。
- 通过XAMPP重新启动MariaDB/MySQL。
- 完成。
我从昨晚开始就一直在寻找。我找不到其他人遇到我的问题。
我开始MySQL,等待大约3-5秒。它意外关闭。
我检查了错误日志,没有异常。我尝试将 MySQL 备份文件夹复制到数据文件夹,它解决了问题,但我的表已被删除,所以不是一个好的解决方案。我该怎么办?!
日志:
2021-09-30 9:56:23 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2021-09-30 9:56:23 0 [Note] InnoDB: Uses event mutexes
2021-09-30 9:56:23 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2021-09-30 9:56:23 0 [Note] InnoDB: Number of pools: 1
2021-09-30 9:56:23 0 [Note] InnoDB: Using SSE2 crc32 instructions
2021-09-30 9:56:23 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2021-09-30 9:56:23 0 [Note] InnoDB: Completed initialization of buffer pool
2021-09-30 9:56:28 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2021-09-30 9:56:28 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2021-09-30 9:56:28 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2021-09-30 9:56:28 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2021-09-30 9:56:28 0 [Note] InnoDB: Waiting for purge to start
2021-09-30 9:56:28 0 [Note] InnoDB: 10.4.20 started; log sequence number 1259779; transaction id 4016
2021-09-30 9:56:28 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2021-09-30 9:56:28 0 [Note] Plugin 'FEEDBACK' is disabled.
2021-09-30 9:56:28 0 [Note] Server socket created on IP: '::'.
要修复和检索您的数据库数据,您可以尝试以下步骤:
- 将
mysqldata
文件夹复制到:mysqldata_copy
- 删除
mysqldata
文件夹中的所有文件(文件夹除外!)。 - 运行 MariaDB/MySQL 通过 XAMPP
- 文件将在我们的文件夹中自行生成。
- 复制文件:
mysqldata_kopia/ibdata1
并将其粘贴到mysqldata
文件夹(它将覆盖该文件)。 - 通过XAMPP重新启动MariaDB/MySQL。
- 完成。