by computergenius » 02. October 2020 10:21
In the absence of any suggestions, I renamed the XAMPP folder - D:\xampp3 to D:\xampp3xxx - this required a Windows restart in safe mode, as Windows could not rename the folder due to something being "open" - which I couldn't find.
I then re-installed XAMPP into a new D: \xampp3 folder. Apache and MySQL started without an issue.
However, I had now "lost" all my data. So I renamed D:\xampp3\mysql\data to D:\xampp3\mysql\dataxxx, then copied all the data folder from D:\xampp3xxx\mysql\data to D:\xampp3\mysql\data - so that all the data from yesterday morning should now be in the new data folder.
Start MYSQL, and got the same error message as before:
11:07:07 [mysql] Error: MySQL shutdown unexpectedly.
11:07:07 [mysql] This may be due to a blocked port, missing dependencies,
11:07:07 [mysql] improper privileges, a crash, or a shutdown by another method.
11:07:07 [mysql] Press the Logs button to view error logs and check
11:07:07 [mysql] the Windows Event Viewer for more clues
11:07:07 [mysql] If you need more help, copy and post this
11:07:07 [mysql] entire log window on the forums
mysql_error.log shows
InnoDB: using atomic writes.
2020-10-02 11:07:05 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2020-10-02 11:07:05 0 [Note] InnoDB: Uses event mutexes
2020-10-02 11:07:05 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-10-02 11:07:05 0 [Note] InnoDB: Number of pools: 1
2020-10-02 11:07:05 0 [Note] InnoDB: Using SSE2 crc32 instructions
2020-10-02 11:07:05 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2020-10-02 11:07:05 0 [Note] InnoDB: Completed initialization of buffer pool
2020-10-02 11:07:06 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2020-10-02 11:07:06 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2020-10-02 11:07:06 0 [Note] InnoDB: Setting file 'D:\xampp3\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2020-10-02 11:07:06 0 [Note] InnoDB: File 'D:\xampp3\mysql\data\ibtmp1' size is now 12 MB.
2020-10-02 11:07:06 0 [Note] InnoDB: Waiting for purge to start
2020-10-02 11:07:06 0 [Note] InnoDB: 10.4.14 started; log sequence number 1310059841; transaction id 9
2020-10-02 11:07:06 0 [Note] InnoDB: Loading buffer pool(s) from D:\xampp3\mysql\data\ib_buffer_pool
2020-10-02 11:07:06 0 [Note] Plugin 'FEEDBACK' is disabled.
2020-10-02 11:07:06 0 [Note] InnoDB: Buffer pool(s) load completed at 201002 11:07:06
2020-10-02 11:07:06 0 [Note] Server socket created on IP: '::'.
Prior to moving the data, when there was no data in the new installation, the error log was
InnoDB: using atomic writes.
2020-10-02 10:42:06 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2020-10-02 10:42:06 0 [Note] InnoDB: Uses event mutexes
2020-10-02 10:42:06 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-10-02 10:42:06 0 [Note] InnoDB: Number of pools: 1
2020-10-02 10:42:06 0 [Note] InnoDB: Using SSE2 crc32 instructions
2020-10-02 10:42:06 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2020-10-02 10:42:06 0 [Note] InnoDB: Completed initialization of buffer pool
2020-10-02 10:42:06 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2020-10-02 10:42:06 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2020-10-02 10:42:06 0 [Note] InnoDB: Setting file 'D:\xampp3\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2020-10-02 10:42:06 0 [Note] InnoDB: File 'D:\xampp3\mysql\data\ibtmp1' size is now 12 MB.
2020-10-02 10:42:06 0 [Note] InnoDB: Waiting for purge to start
2020-10-02 10:42:06 0 [Note] InnoDB: 10.4.14 started; log sequence number 1310059832; transaction id 9
2020-10-02 10:42:06 0 [Note] InnoDB: Loading buffer pool(s) from D:\xampp3\mysql\data\ib_buffer_pool
2020-10-02 10:42:06 0 [Note] Plugin 'FEEDBACK' is disabled.
2020-10-02 10:42:06 0 [Note] InnoDB: Buffer pool(s) load completed at 201002 10:42:06
2020-10-02 10:42:06 0 [Note] Server socket created on IP: '::'.
So it appears that a) there is something wrong in the data folder, and b) the log is the same when working without data, as it is when crashing with data - with the exception of the log sequence number.
Any suggestions?