I'm using SQL from XAMPP, and it started crashing out of the blue.
The problem is that it is not the first time it happens: about once every two month, without changing any settings, I try to start MySQL and it crashes with this error:
Error: MySQL shutdown unexpectedly.This may be due to a blocked port, missing dependencies, improper privileges, a crash, or a shutdown by another method.Press the Logs button to view error logs and checkthe Windows Event Viewer for more cluesIf you need more help, copy and post thisentire log window on the forums
I checked inside mysql_error.log, and this is the output:
InnoDB: using atomic writes.date time [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functionsdate time [Note] InnoDB: Uses event mutexesdate time [Note] InnoDB: Compressed tables use zlib 1.2.11date time [Note] InnoDB: Number of pools: 1date time [Note] InnoDB: Using SSE2 crc32 instructionsdate time [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16Mdate time [Note] InnoDB: Completed initialization of buffer pooldate time [ERROR] InnoDB: Page [page id: space=0, page number=7] log sequence number 2096959 is in the future! Current system log sequence number 47197.date time [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.date time [ERROR] InnoDB: Page [page id: space=0, page number=2] log sequence number 1753268 is in the future! Current system log sequence number 47197.date time [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.date time [ERROR] InnoDB: Page [page id: space=0, page number=11] log sequence number 2098547 is in the future! Current system log sequence number 47197....and so on...date time [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.date time [ERROR] InnoDB: Page [page id: space=0, page number=304] log sequence number 2047369 is in the future! Current system log sequence number 47197.date time [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.date time [ERROR] InnoDB: Page [page id: space=0, page number=308] log sequence number 2098588 is in the future! Current system log sequence number 47197.date time [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.date time [Note] InnoDB: 128 out of 128 rollback segments are active.date time [ERROR] InnoDB: Page [page id: space=0, page number=305] log sequence number 2048463 is in the future! Current system log sequence number 47197.date time [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.date time [ERROR] InnoDB: Page [page id: space=0, page number=310] log sequence number 112972 is in the future! Current system log sequence number 47197.date time [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.date time [Note] InnoDB: Creating shared tablespace for temporary tablesdate time [Note] InnoDB: Setting file 'C:\Xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...date time [Note] InnoDB: File 'C:\Xampp\mysql\data\ibtmp1' size is now 12 MB.date time [Note] InnoDB: Waiting for purge to startdate time [ERROR] InnoDB: Page [page id: space=0, page number=9] log sequence number 2095997 is in the future! Current system log sequence number 47197.date time [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.date time [ERROR] InnoDB: Page [page id: space=120, page number=0] log sequence number 2043003 is in the future! Current system log sequence number 47197.date time [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.date time [ERROR] InnoDB: Page [page id: space=120, page number=3] log sequence number 2138607 is in the future! Current system log sequence number 47197.date time [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.date time [ERROR] InnoDB: Page [page id: space=120, page number=1] log sequence number 2040809 is in the future! Current system log sequence number 47197.date time [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.date time [ERROR] InnoDB: Page [page id: space=76, page number=0] log sequence number 731900 is in the future! Current system log sequence number 47197.date time [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.date time [ERROR] InnoDB: Page [page id: space=76, page number=3] log sequence number 1588962 is in the future! Current system log sequence number 47197.date time [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.date time [ERROR] InnoDB: Page [page id: space=76, page number=1] log sequence number 731608 is in the future! Current system log sequence number 47197.date time [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.date time [ERROR] InnoDB: Page [page id: space=121, page number=0] log sequence number 2047129 is in the future! Current system log sequence number 47197.date time [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.date time [ERROR] InnoDB: Page [page id: space=121, page number=3] log sequence number 2138924 is in the future! Current system log sequence number 47197.date time [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.date time [ERROR] InnoDB: Page [page id: space=121, page number=1] log sequence number 2044693 is in the future! Current system log sequence number 47197.date time [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.date time [ERROR] InnoDB: Page [page id: space=78, page number=0] log sequence number 839810 is in the future! Current system log sequence number 47197.date time [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.date time [ERROR] InnoDB: Page [page id: space=78, page number=3] log sequence number 838842 is in the future! Current system log sequence number 47197.date time [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.date time [ERROR] InnoDB: Page [page id: space=78, page number=1] log sequence number 839518 is in the future! Current system log sequence number 47197.date time [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.date time [Note] InnoDB: 10.4.11 started; log sequence number 47188; transaction id 6438date time [Note] InnoDB: Loading buffer pool(s) from C:\Xampp\mysql\data\ib_buffer_pooldate time [Note] Plugin 'FEEDBACK' is disabled.date time [ERROR] InnoDB: Page [page id: space=0, page number=243] log sequence number 2130304 is in the future! Current system log sequence number 47197.date time [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.date time [ERROR] InnoDB: Page [page id: space=1, page number=0] log sequence number 118340 is in the future! Current system log sequence number 47197.date time [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.date time [Note] Server socket created on IP: '::'.date time [ERROR] InnoDB: Pa --yes, I tried several times and it remains truncated like this
Searching on Google the only solution I found was reinstalling everything.
I've done it four times up to now after a backup, but I cannot keep reinstalling everything every time I get that error.
If there's not a solution, is there at leasta way to prevent this in the future, or a way to reset MySQL without needing to format XAMPP?
Furthermore, I can't find out which database type I'm using:
- on XAMPP control panel it says MySQL
- using
SELECT VERSION();
and insideib_logfile0
I find MariaDB - Inside the log file above it says InnoDB