Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

xampp windows mariadb not starting

mariaDB is not starting in my windows 10.

I am getting the following in the logs:

Cannot find checkpoint record at LSN (1,0x5c8f)
2019-12-19  9:18:13 0 [ERROR] mysqld.exe: Aria recovery failed. Please run aria_chk -r on all Aria tables and delete all aria_log.######## files
2019-12-19  9:18:13 0 [ERROR] Plugin 'Aria' init function returned error.
2019-12-19  9:18:13 0 [ERROR] Plugin 'Aria' registration as a STORAGE ENGINE failed.
InnoDB: using atomic writes.
2019-12-19  9:18:13 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2019-12-19  9:18:13 0 [Note] InnoDB: Uses event mutexes
2019-12-19  9:18:13 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2019-12-19  9:18:13 0 [Note] InnoDB: Number of pools: 1
2019-12-19  9:18:13 0 [Note] InnoDB: Using SSE2 crc32 instructions
2019-12-19  9:18:13 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2019-12-19  9:18:13 0 [Note] InnoDB: Completed initialization of buffer pool
2019-12-19  9:18:14 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2019-12-19  9:18:14 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2019-12-19  9:18:14 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2019-12-19  9:18:14 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2019-12-19  9:18:14 0 [Note] InnoDB: Waiting for purge to start
2019-12-19  9:18:14 0 [Note] InnoDB: 10.4.10 started; log sequence number 42992145; transaction id 110929
2019-12-19  9:18:14 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2019-12-19  9:18:14 0 [Note] Plugin 'FEEDBACK' is disabled.
2019-12-19  9:18:14 0 [ERROR] Could not open mysql.plugin table. Some plugins may be not loaded
2019-12-19  9:18:14 0 [Note] InnoDB: Buffer pool(s) load completed at 191219  9:18:14
2019-12-19  9:18:14 0 [ERROR] Failed to initialize plugins.
2019-12-19  9:18:14 0 [ERROR] Aborting

I have searched around and could not find a fix for this issue. Xampp was working fine yesterday but did not start today. So, what I did yesterday was to clone a wordpress website to my pc using xcloner. After I cloned the website, everything was working fine. Then, I stopped mysql and apache and shutdown my pc. This morning, I got that issue.

I had face the same issue other times and I have reinstalled xampp and wordpress (bitnami versions). However, I keep getting that problem.

Any help will be greatly appreciated.

like image 253
Hugo Fernando Maia Milan Avatar asked Dec 19 '19 13:12

Hugo Fernando Maia Milan


People also ask

Why is MySQL not starting in XAMPP?

Fixing the MySQL server not starting in XAMPP is done by reverting back the data files pre-issue. Navigate to your XAMPP MySQL directory ( C:\xampp\mysql ). Create a new folder called FIX_BACKUP . Copy C:\xampp\mysql\backup and C:\xampp\mysql\data into C:\xampp\mysql\FIX_BACKUP .

Does XAMPP support MariaDB?

We just released new versions of XAMPP for Windows, OS X and Linux with MariaDB 10.0. 17 and the latest PHP versions: 5.5. 30 & 5.6. 14.


1 Answers

With the help of @RiggsFolly, the following solved my issue.

  1. Open cmd.
  2. In cmd, go to xampp/mysql/data folder. In my case, I did the following cd C:\xampp\mysql\data
  3. Run aria_chk -r in that directory for all .MAI tables in the mysql subfolder. In my case, ..\bin\aria_chk -r mysql\*.MAI
  4. Delete all aria_log.######## files. They are present in the C:\xampp\mysql\data folder. I just renamed them for just in case (added old_ in the beginning of their names).
  5. Start xampp again and it should be working.
like image 79
Hugo Fernando Maia Milan Avatar answered Nov 16 '22 03:11

Hugo Fernando Maia Milan