XAMPP mysql(Mariadb)变得不可靠

XAMPP mysql(Mariadb)变得不可靠

多年来,我一直在 Windows 中使用 XAMPP,从未出现任何问题,但最近,由于 mysql(MariaDB),它变得不可靠了。在 XAMPP 控制面板中,mysql 有时可以正常启动,有时它会在启动时无缘无故崩溃 - 即使前一天它还正常。我使用的是 Windows 11。当它像这样崩溃时,我会替换数据库并从备份中恢复 mysql(MariaDB)。然后它会正常工作一段时间,但几天后,它会再次崩溃。我正在复制下面的错误日志 - 但奇怪的是,即使在错误日志之后,控制面板中的 mysql(MariaDB)仍然运行良好。

我拥有的版本是:XAMPP 版本 8.2.4+ Apache 2.4.56 MariaDB 10.4.28 PHP 8.2.4(VS16 X86 64 位线程安全)+ PEAR phpMyAdmin 5.2.1

你能帮忙吗?

最新版本的 XAMPP 可能不如前一个版本可靠。谢谢。

我正在复制 mysql 错误日志 - 但是尽管有这个错误日志,mysql 仍在 XAMPP 控制面板中运行。

错误日志最后像这样截断:

2023-09-12 19:17:18 0 [ERRO

2023-09-12 19:17:18 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2023-09-12 19:17:18 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2023-09-12 19:17:18 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2023-09-12 19:17:18 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2023-09-12 19:17:18 0 [Note] InnoDB: Waiting for purge to start
2023-09-12 19:17:18 0 [Note] InnoDB: 10.4.28 started; log sequence number 681795; transaction id 18382
2023-09-12 19:17:18 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2023-09-12 19:17:18 0 [Note] Plugin 'FEEDBACK' is disabled.
2023-09-12 19:17:18 0 [ERROR] InnoDB: Page [page id: space=0, page number=9] log sequence number 7200324 is in the future! Current system log sequence number 681804.
2023-09-12 19:17:18 0 [ERROR] InnoDB: Your database may be corrupt or you may have copied the InnoDB tablespace but not the InnoDB log files. Please refer to https://mariadb.com/kb/en/library/innodb-recovery-modes/ for information about forcing recovery.
2023-09-12 19:17:18 0 [Note] Server socket created on IP: '::'.
2023-09-12 19:17:18 0 [ERRO

答案1

我认为您的数据库可能在某种程度上被损坏了。恢复后,请尝试修复它。

mysqlcheck [options] [db_name [tbl_name ...]]

相关内容