我在 Windows 中使用 XAMPP 多年,沒有任何問題,但最近,由於 mysql (MariaDB),它變得不可靠。在 XAMPP 控制面板中,mysql 有時會正常啟動,有時會無緣無故地在啟動時崩潰 - 即使前一天還好好的。我有 Windows 11。然後它會正常工作一段時間,但幾天后,它會再次崩潰。我正在複製下面的錯誤日誌 - 但奇怪的是,即使在控制面板中的錯誤日誌之後,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 ...]]