MySQL error log - please help

Problems with the Windows version of XAMPP, questions, comments, and anything related.

MySQL error log - please help

Postby ALS57 » 22. June 2020 18:24

MySQL has shut down unexpectedly so I cant get back into my localhost website using XAMPP
Can you please get me back into MySQL or suggest a way of recovering my database?
Many thanks
Al

My Error log is:

InnoDB: using atomic writes.
2020-06-22 18:01:36 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2020-06-22 18:01:36 0 [Note] InnoDB: Uses event mutexes
2020-06-22 18:01:36 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-06-22 18:01:36 0 [Note] InnoDB: Number of pools: 1
2020-06-22 18:01:36 0 [Note] InnoDB: Using SSE2 crc32 instructions
2020-06-22 18:01:36 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2020-06-22 18:01:36 0 [Note] InnoDB: Completed initialization of buffer pool
2020-06-22 18:01:37 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2020-06-22 18:01:37 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2020-06-22 18:01:37 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2020-06-22 18:01:37 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2020-06-22 18:01:37 0 [Note] InnoDB: Waiting for purge to start
2020-06-22 18:01:37 0 [Note] InnoDB: 10.4.11 started; log sequence number 27427888; transaction id 57031
2020-06-22 18:01:37 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2020-06-22 18:01:37 0 [Note] Plugin 'FEEDBACK' is disabled.
2020-06-22 18:01:37 0 [Note] Server socket created on IP: '::'.
2020-06-22 18:01:37 0 [ERROR] mysqld.exe: Index for table '.\mysql\db' is corrupt; try to repair it
2020-06-22 18:01:37 0 [ERROR] Couldn't repair table: mysql.db
2020-06-22 18:01:37 0 [ERROR] Fatal error: Can't open and lock privilege tables: Index for table 'db' is corrupt; try to repair it
2020-06-22 18:01:37 0 [ERROR] Aborting
InnoDB: using atomic writes.
2020-06-22 18:02:02 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2020-06-22 18:02:02 0 [Note] InnoDB: Uses event mutexes
2020-06-22 18:02:02 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-06-22 18:02:02 0 [Note] InnoDB: Number of pools: 1
2020-06-22 18:02:02 0 [Note] InnoDB: Using SSE2 crc32 instructions
2020-06-22 18:02:02 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2020-06-22 18:02:02 0 [Note] InnoDB: Completed initialization of buffer pool
2020-06-22 18:02:02 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2020-06-22 18:02:02 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2020-06-22 18:02:02 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2020-06-22 18:02:02 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2020-06-22 18:02:02 0 [Note] InnoDB: Waiting for purge to start
2020-06-22 18:02:02 0 [Note] InnoDB: 10.4.11 started; log sequence number 27427897; transaction id 57031
2020-06-22 18:02:02 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2020-06-22 18:02:02 0 [Note] Plugin 'FEEDBACK' is disabled.
2020-06-22 18:02:02 0 [Note] Server socket created on IP: '::'.
ALS57
 
Posts: 2
Joined: 22. June 2020 18:13
XAMPP version: V3.2.4
Operating System: Windows 10

Re: MySQL error log - please help

Postby ALS57 » 23. June 2020 11:50

Sorted thanks to this information I found elsewhere, hope it helps others

Re: XAMMP Control Panel Error when trying start MySql servic
Postby dibyajena » 01. May 2020 18:08

Open shell from from control panel and start mysql with this command:

mysqld –-console –-skip-grant-tables –-skip-external-locking

Open another shell from control panel and repair database with this command:

mysqlcheck -r --databases mysql --use-frm

Stop mysql, close shells and restart mysql normally.
ALS57
 
Posts: 2
Joined: 22. June 2020 18:13
XAMPP version: V3.2.4
Operating System: Windows 10


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 106 guests