'XAMPP MySQL failing to start after WIN 11 Update
Win 11 with an XAMPP installation, everything was running fine. Had to restart the PC and had a Windows update as well. When I come back MySQL will not start up.
This is the error log. I am running it as Admin, not sure what I need to do to fix this.
2022-03-24 18:13:12 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2022-03-24 18:13:12 0 [Note] InnoDB: Uses event mutexes
2022-03-24 18:13:12 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2022-03-24 18:13:12 0 [Note] InnoDB: Number of pools: 1
2022-03-24 18:13:12 0 [Note] InnoDB: Using SSE2 crc32 instructions
2022-03-24 18:13:12 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2022-03-24 18:13:12 0 [Note] InnoDB: Completed initialization of buffer pool
2022-03-24 18:13:12 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2022-03-24 18:13:12 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2022-03-24 18:13:12 0 [Note] InnoDB: Setting file 'E:\barkeeper\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2022-03-24 18:13:12 0 [Note] InnoDB: File 'E:\barkeeper\xampp\mysql\data\ibtmp1' size is now 12 MB.
2022-03-24 18:13:12 0 [Note] InnoDB: Waiting for purge to start
2022-03-24 18:13:12 0 [Note] InnoDB: 10.4.19 started; log sequence number 15569034; transaction id 163623
2022-03-24 18:13:12 0 [Note] InnoDB: Loading buffer pool(s) from E:\barkeeper\xampp\mysql\data\ib_buffer_pool
2022-03-24 18:13:12 0 [Note] Plugin 'FEEDBACK' is disabled.
2022-03-24 18:13:12 0 [Note] Server socket created on IP: '::'.
2022-03-24 18:13:12 0 [ERROR] Fatal error: Can't open and lock privilege tables: Incorrect file format 'db'
2022-03-24 18:13:12 0 [ERROR] Aborting
Solution 1:[1]
I fixed it, here is how:
- Close the Xampp application ( preferably using task Manager)
- Open
C:\xampp\mysqlfolder - Rename the data folder to
data_old - Copy and paste the backup folder named
backup_copy - Rename the
backup_copyfolder todata - Open
data_oldfolder, copy all folders exceptmysqlfolder,performance_schemafolder andphpmyadminfolder. - Go to the newly renamed data folder, paste the folders from step 6 inside.
- Open the
data_oldfolder, copyibdata1 - Paste it in the
datafolder - Start Xampp, everything should be working now.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Stephen M Irving |
