Error: MySQL shutdown unexpectedly

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

Error: MySQL shutdown unexpectedly

Postby George1109 » 24. January 2021 21:18

MySQL doesnt work when I clicked to Start button for Apache and MySQL.
Error: MySQL shutdown unexpectedly.
10:16:24 μμ [mysql] This may be due to a blocked port, missing dependencies,
10:16:24 μμ [mysql] improper privileges, a crash, or a shutdown by another method.
10:16:24 μμ [mysql] Press the Logs button to view error logs and check
10:16:24 μμ [mysql] the Windows Event Viewer for more clues
10:16:24 μμ [mysql] If you need more help, copy and post this
10:16:24 μμ [mysql] entire log window on the forums


InnoDB: using atomic writes.
2021-01-24 22:02:02 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2021-01-24 22:02:02 0 [Note] InnoDB: Uses event mutexes
2021-01-24 22:02:02 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2021-01-24 22:02:02 0 [Note] InnoDB: Number of pools: 1
2021-01-24 22:02:02 0 [Note] InnoDB: Using SSE2 crc32 instructions
2021-01-24 22:02:02 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2021-01-24 22:02:02 0 [Note] InnoDB: Completed initialization of buffer pool
2021-01-24 22:02:02 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2021-01-24 22:02:02 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2021-01-24 22:02:02 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2021-01-24 22:02:02 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2021-01-24 22:02:02 0 [Note] InnoDB: 10.4.17 started; log sequence number 11131152; transaction id 9389
2021-01-24 22:02:02 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2021-01-24 22:02:02 0 [Note] Plugin 'FEEDBACK' is disabled.
2021-01-24 22:02:02 0 [ERROR] Could not open mysql.plugin table. Some plugins may be not loaded
2021-01-24 22:02:02 0 [ERROR] Failed to initialize plugins.
2021-01-24 22:02:02 0 [Note] InnoDB: Buffer pool(s) load completed at 210124 22:02:02
2021-01-24 22:02:02 0 [ERROR] Aborting
Cannot find checkpoint record at LSN (1,0x5b84)
2021-01-24 22:09:51 0 [ERROR] mysqld.exe: Aria recovery failed. Please run aria_chk -r on all Aria tables and delete all aria_log.######## files
2021-01-24 22:09:51 0 [ERROR] Plugin 'Aria' init function returned error.
2021-01-24 22:09:51 0 [ERROR] Plugin 'Aria' registration as a STORAGE ENGINE failed.
InnoDB: using atomic writes.
2021-01-24 22:09:51 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2021-01-24 22:09:51 0 [Note] InnoDB: Uses event mutexes
2021-01-24 22:09:51 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2021-01-24 22:09:51 0 [Note] InnoDB: Number of pools: 1
2021-01-24 22:09:51 0 [Note] InnoDB: Using SSE2 crc32 instructions
2021-01-24 22:09:51 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2021-01-24 22:09:51 0 [Note] InnoDB: Completed initialization of buffer pool
2021-01-24 22:09:51 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2021-01-24 22:09:51 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2021-01-24 22:09:51 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2021-01-24 22:09:51 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2021-01-24 22:09:51 0 [Note] InnoDB: Waiting for purge to start
2021-01-24 22:09:51 0 [Note] InnoDB: 10.4.17 started; log sequence number 11131170; transaction id 9389
2021-01-24 22:09:51 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2021-01-24 22:09:51 0 [Note] Plugin 'FEEDBACK' is disabled.
2021-01-24 22:09:51 0 [Note] InnoDB: Buffer pool(s) load completed at 210124 22:09:51
2021-01-24 22:09:51 0 [ERROR] Could not open mysql.plugin table. Some plugins may be not loaded
2021-01-24 22:09:51 0 [ERROR] Failed to initialize plugins.
2021-01-24 22:09:51 0 [ERROR] Aborting
Cannot find checkpoint record at LSN (1,0x5b84)
2021-01-24 22:16:22 0 [ERROR] mysqld.exe: Aria recovery failed. Please run aria_chk -r on all Aria tables and delete all aria_log.######## files
2021-01-24 22:16:22 0 [ERROR] Plugin 'Aria' init function returned error.
2021-01-24 22:16:22 0 [ERROR] Plugin 'Aria' registration as a STORAGE ENGINE failed.
InnoDB: using atomic writes.
2021-01-24 22:16:22 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2021-01-24 22:16:22 0 [Note] InnoDB: Uses event mutexes
2021-01-24 22:16:22 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2021-01-24 22:16:22 0 [Note] InnoDB: Number of pools: 1
2021-01-24 22:16:22 0 [Note] InnoDB: Using SSE2 crc32 instructions
2021-01-24 22:16:22 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2021-01-24 22:16:22 0 [Note] InnoDB: Completed initialization of buffer pool
2021-01-24 22:16:22 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2021-01-24 22:16:22 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2021-01-24 22:16:22 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2021-01-24 22:16:22 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2021-01-24 22:16:22 0 [Note] InnoDB: Waiting for purge to start
2021-01-24 22:16:22 0 [Note] InnoDB: 10.4.17 started; log sequence number 11131179; transaction id 9389
2021-01-24 22:16:22 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2021-01-24 22:16:22 0 [Note] Plugin 'FEEDBACK' is disabled.
2021-01-24 22:16:22 0 [ERROR] Could not open mysql.plugin table. Some plugins may be not loaded
2021-01-24 22:16:22 0 [Note] InnoDB: Buffer pool(s) load completed at 210124 22:16:22
2021-01-24 22:16:22 0 [ERROR] Failed to initialize plugins.
2021-01-24 22:16:22 0 [ERROR] Aborting
George1109
 
Posts: 3
Joined: 24. January 2021 21:10
XAMPP version: v 3 2 4
Operating System: win10

Re: Error: MySQL shutdown unexpectedly

Postby Altrea » 25. January 2021 01:36

your mysql database needs to be repaired.

To do this please open the XAMPP Shell by clicking the Shell button in your XAMPP Control Panel and execute the following command:
Code: Select all
mysqld --console --skip-grant-tables --skip-external-locking


Leave this black command line window open and click on the Shell button in the Control Panel again to open a second command line window and execute this command:
Code: Select all
mysqlcheck -r --databases mysql --use-frm


After that you Can close both command line Windows and try to start mysql again normally from your XAMPP control panel
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Error: MySQL shutdown unexpectedly

Postby George1109 » 25. January 2021 17:30

i did all that but i didn t work . I have this message

Setting environment for using XAMPP for Windows.
User@MYPC c:\xampp
# mysqlcheck -r --databases mysql --use-frm
mysqlcheck: Got error: 2002: Can't connect to MySQL server on 'localhost' (10061) when trying to connect

User@MYPC c:\xampp
#
George1109
 
Posts: 3
Joined: 24. January 2021 21:10
XAMPP version: v 3 2 4
Operating System: win10

Re: Error: MySQL shutdown unexpectedly

Postby George1109 » 25. January 2021 18:04

Also i have theese at log file

2021-01-25 18:26:52 0 [ERROR] mysqld.exe: Aria recovery failed. Please run aria_chk -r on all Aria tables and delete all aria_log.######## files
2021-01-25 18:26:52 0 [ERROR] Plugin 'Aria' init function returned error.
2021-01-25 18:26:52 0 [ERROR] Plugin 'Aria' registration as a STORAGE ENGINE failed.
InnoDB: using atomic writes.
2021-01-25 18:26:52 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2021-01-25 18:26:52 0 [Note] InnoDB: Uses event mutexes
2021-01-25 18:26:52 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2021-01-25 18:26:52 0 [Note] InnoDB: Number of pools: 1
2021-01-25 18:26:52 0 [Note] InnoDB: Using SSE2 crc32 instructions
2021-01-25 18:26:52 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2021-01-25 18:26:52 0 [Note] InnoDB: Completed initialization of buffer pool
2021-01-25 18:26:52 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2021-01-25 18:26:52 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2021-01-25 18:26:52 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2021-01-25 18:26:52 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2021-01-25 18:26:52 0 [Note] InnoDB: Waiting for purge to start
2021-01-25 18:26:52 0 [Note] InnoDB: 10.4.17 started; log sequence number 11131233; transaction id 9389
2021-01-25 18:26:52 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2021-01-25 18:26:52 0 [Note] Plugin 'FEEDBACK' is disabled.
2021-01-25 18:26:52 0 [Note] InnoDB: Buffer pool(s) load completed at 210125 18:26:52
2021-01-25 18:26:52 0 [ERROR] Could not open mysql.plugin table. Some plugins may be not loaded
2021-01-25 18:26:52 0 [ERROR] Failed to initialize plugins.
2021-01-25 18:26:52 0 [ERROR] Aborting
Cannot find checkpoint record at LSN (1,0x5b84)
2021-01-25 18:27:15 0 [ERROR] mysqld.exe: Aria recovery failed. Please run aria_chk -r on all Aria tables and delete all aria_log.######## files
2021-01-25 18:27:15 0 [ERROR] Plugin 'Aria' init function returned error.
2021-01-25 18:27:15 0 [ERROR] Plugin 'Aria' registration as a STORAGE ENGINE failed.
InnoDB: using atomic writes.
2021-01-25 18:27:15 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2021-01-25 18:27:15 0 [Note] InnoDB: Uses event mutexes
2021-01-25 18:27:15 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2021-01-25 18:27:15 0 [Note] InnoDB: Number of pools: 1
2021-01-25 18:27:15 0 [Note] InnoDB: Using SSE2 crc32 instructions
2021-01-25 18:27:15 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2021-01-25 18:27:15 0 [Note] InnoDB: Completed initialization of buffer pool
2021-01-25 18:27:15 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2021-01-25 18:27:15 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2021-01-25 18:27:15 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2021-01-25 18:27:15 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2021-01-25 18:27:15 0 [Note] InnoDB: Waiting for purge to start
2021-01-25 18:27:15 0 [Note] InnoDB: 10.4.17 started; log sequence number 11131242; transaction id 9389
2021-01-25 18:27:15 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2021-01-25 18:27:15 0 [Note] Plugin 'FEEDBACK' is disabled.
2021-01-25 18:27:15 0 [Note] InnoDB: Buffer pool(s) load completed at 210125 18:27:15
2021-01-25 18:27:15 0 [ERROR] Could not open mysql.plugin table. Some plugins may be not loaded
2021-01-25 18:27:15 0 [ERROR] Failed to initialize plugins.
2021-01-25 18:27:15 0 [ERROR] Aborting
Cannot find checkpoint record at LSN (1,0x5b84)
2021-01-25 18:29:26 0 [ERROR] mysqld.exe: Aria recovery failed. Please run aria_chk -r on all Aria tables and delete all aria_log.######## files
2021-01-25 18:29:26 0 [ERROR] Plugin 'Aria' init function returned error.
2021-01-25 18:29:26 0 [ERROR] Plugin 'Aria' registration as a STORAGE ENGINE failed.
InnoDB: using atomic writes.
2021-01-25 18:29:26 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2021-01-25 18:29:26 0 [Note] InnoDB: Uses event mutexes
2021-01-25 18:29:26 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2021-01-25 18:29:26 0 [Note] InnoDB: Number of pools: 1
2021-01-25 18:29:26 0 [Note] InnoDB: Using SSE2 crc32 instructions
2021-01-25 18:29:26 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2021-01-25 18:29:26 0 [Note] InnoDB: Completed initialization of buffer pool
2021-01-25 18:29:26 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2021-01-25 18:29:26 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2021-01-25 18:29:26 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2021-01-25 18:29:26 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2021-01-25 18:29:26 0 [Note] InnoDB: Waiting for purge to start
2021-01-25 18:29:27 0 [Note] InnoDB: 10.4.17 started; log sequence number 11131260; transaction id 9389
2021-01-25 18:29:27 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2021-01-25 18:29:27 0 [Note] Plugin 'FEEDBACK' is disabled.
2021-01-25 18:29:27 0 [Note] InnoDB: Buffer pool(s) load completed at 210125 18:29:27
2021-01-25 18:29:27 0 [ERROR] Could not open mysql.plugin table. Some plugins may be not loaded
2021-01-25 18:29:27 0 [ERROR] Failed to initialize plugins.
2021-01-25 18:29:27 0 [ERROR] Aborting
Cannot find checkpoint record at LSN (1,0x5b84)
2021-01-25 18:33:33 0 [ERROR] mysqld.exe: Aria recovery failed. Please run aria_chk -r on all Aria tables and delete all aria_log.######## files
2021-01-25 18:33:33 0 [ERROR] Plugin 'Aria' init function returned error.
2021-01-25 18:33:33 0 [ERROR] Plugin 'Aria' registration as a STORAGE ENGINE failed.
InnoDB: using atomic writes.
2021-01-25 18:33:33 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2021-01-25 18:33:33 0 [Note] InnoDB: Uses event mutexes
2021-01-25 18:33:33 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2021-01-25 18:33:33 0 [Note] InnoDB: Number of pools: 1
2021-01-25 18:33:33 0 [Note] InnoDB: Using SSE2 crc32 instructions
2021-01-25 18:33:33 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2021-01-25 18:33:33 0 [Note] InnoDB: Completed initialization of buffer pool
2021-01-25 18:33:34 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2021-01-25 18:33:34 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2021-01-25 18:33:34 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2021-01-25 18:33:34 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2021-01-25 18:33:34 0 [Note] InnoDB: Waiting for purge to start
2021-01-25 18:33:34 0 [Note] InnoDB: 10.4.17 started; log sequence number 11131269; transaction id 9389
2021-01-25 18:33:34 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2021-01-25 18:33:34 0 [Note] Plugin 'FEEDBACK' is disabled.
2021-01-25 18:33:34 0 [Note] InnoDB: Buffer pool(s) load completed at 210125 18:33:34
2021-01-25 18:33:34 0 [ERROR] Could not open mysql.plugin table. Some plugins may be not loaded
2021-01-25 18:33:34 0 [ERROR] Failed to initialize plugins.
2021-01-25 18:33:34 0 [ERROR] Aborting
Cannot find checkpoint record at LSN (1,0x5b84)
2021-01-25 18:53:35 0 [ERROR] mysqld.exe: Aria recovery failed. Please run aria_chk -r on all Aria tables and delete all aria_log.######## files
2021-01-25 18:53:35 0 [ERROR] Plugin 'Aria' init function returned error.
2021-01-25 18:53:35 0 [ERROR] Plugin 'Aria' registration as a STORAGE ENGINE failed.
InnoDB: using atomic writes.
2021-01-25 18:53:35 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2021-01-25 18:53:35 0 [Note] InnoDB: Uses event mutexes
2021-01-25 18:53:35 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2021-01-25 18:53:35 0 [Note] InnoDB: Number of pools: 1
2021-01-25 18:53:35 0 [Note] InnoDB: Using SSE2 crc32 instructions
2021-01-25 18:53:35 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2021-01-25 18:53:35 0 [Note] InnoDB: Completed initialization of buffer pool
2021-01-25 18:53:35 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2021-01-25 18:53:35 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2021-01-25 18:53:35 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2021-01-25 18:53:35 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2021-01-25 18:53:35 0 [Note] InnoDB: Waiting for purge to start
2021-01-25 18:53:35 0 [Note] InnoDB: 10.4.17 started; log sequence number 11131296; transaction id 9389
2021-01-25 18:53:35 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2021-01-25 18:53:35 0 [Note] Plugin 'FEEDBACK' is disabled.
2021-01-25 18:53:35 0 [Note] InnoDB: Buffer pool(s) load completed at 210125 18:53:35
2021-01-25 18:53:35 0 [ERROR] Could not open mysql.plugin table. Some plugins may be not loaded
2021-01-25 18:53:35 0 [ERROR] Failed to initialize plugins.
2021-01-25 18:53:35 0 [ERROR] Aborting
Cannot find checkpoint record at LSN (1,0x5b84)
2021-01-25 19:00:25 0 [ERROR] mysqld.exe: Aria recovery failed. Please run aria_chk -r on all Aria tables and delete all aria_log.######## files
2021-01-25 19:00:25 0 [ERROR] Plugin 'Aria' init function returned error.
2021-01-25 19:00:25 0 [ERROR] Plugin 'Aria' registration as a STORAGE ENGINE failed.
InnoDB: using atomic writes.
2021-01-25 19:00:25 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2021-01-25 19:00:25 0 [Note] InnoDB: Uses event mutexes
2021-01-25 19:00:25 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2021-01-25 19:00:25 0 [Note] InnoDB: Number of pools: 1
2021-01-25 19:00:25 0 [Note] InnoDB: Using SSE2 crc32 instructions
2021-01-25 19:00:25 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2021-01-25 19:00:25 0 [Note] InnoDB: Completed initialization of buffer pool
2021-01-25 19:00:26 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2021-01-25 19:00:26 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2021-01-25 19:00:26 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2021-01-25 19:00:26 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2021-01-25 19:00:26 0 [Note] InnoDB: Waiting for purge to start
2021-01-25 19:00:26 0 [Note] InnoDB: 10.4.17 started; log sequence number 11131305; transaction id 9389
2021-01-25 19:00:26 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2021-01-25 19:00:26 0 [Note] Plugin 'FEEDBACK' is disabled.
2021-01-25 19:00:26 0 [ERROR] Could not open mysql.plugin table. Some plugins may be not loaded
2021-01-25 19:00:26 0 [Note] InnoDB: Buffer pool(s) load completed at 210125 19:00:26
2021-01-25 19:00:26 0 [ERROR] Failed to initialize plugins.
2021-01-25 19:00:26 0 [ERROR] Aborting
George1109
 
Posts: 3
Joined: 24. January 2021 21:10
XAMPP version: v 3 2 4
Operating System: win10

Re: Error: MySQL shutdown unexpectedly

Postby Altrea » 26. January 2021 06:42

George1109 wrote:i did all that but i didn t work . I have this message

Setting environment for using XAMPP for Windows.
User@MYPC c:\xampp
# mysqlcheck -r --databases mysql --use-frm
mysqlcheck: Got error: 2002: Can't connect to MySQL server on 'localhost' (10061) when trying to connect

User@MYPC c:\xampp
#

Did you leave the first command line window open?
What was the output of the first command line window?
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Error: MySQL shutdown unexpectedly

Postby thetdl » 02. February 2021 17:17

I am having the same issue, I kept both windows open but looks like an issue with the first command.
thetdl
 
Posts: 1
Joined: 02. February 2021 17:14
XAMPP version: 3.2.4
Operating System: windows

Re: Error: MySQL shutdown unexpectedly

Postby dtommy79 » 05. February 2021 08:00

I'm getting these problems all the time and none of the recommendations work, except remove everything and reinstall Xampp. This is very frustrating since I need to reinstall it every month or so. I don't know why this issue isn't addressed properly.
dtommy79
 
Posts: 12
Joined: 24. June 2008 21:43
XAMPP version: 8.0.1
Operating System: Windows 10

Re: Error: MySQL shutdown unexpectedly

Postby Altrea » 05. February 2021 08:24

Search for the following files in your \xampp\mysql\ folder and delete them:

  • ib_logfile0
  • ib_logfile1
  • aria_log_control
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Error: MySQL shutdown unexpectedly

Postby dtommy79 » 05. February 2021 08:45

Altrea wrote:Search for the following files in your \xampp\mysql\ folder and delete them:

  • ib_logfile0
  • ib_logfile1
  • aria_log_control



Yes, and also sometimes you need to remove everything from the "\xampp\mysql\data\project_name" folder. But even then, it doesn't always work.
dtommy79
 
Posts: 12
Joined: 24. June 2008 21:43
XAMPP version: 8.0.1
Operating System: Windows 10

Re: Error: MySQL shutdown unexpectedly

Postby Altrea » 05. February 2021 09:35

dtommy79 wrote:Yes, and also sometimes you need to remove everything from the "\xampp\mysql\data\project_name" folder. But even then, it doesn't always work.

The solution or workaround always depends on the specific error message.
There is no way to provide a global "all in one" solution. People just read "MySQL shutdown unexpectedly" and wrongly assume that the reason and solution for this is always the same.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Error: MySQL shutdown unexpectedly

Postby madmaria » 02. May 2021 00:47

THANK YOU SO MUCH, IT WORKED PERFECTLY FOR ME
madmaria
 
Posts: 1
Joined: 02. May 2021 00:45
XAMPP version: 3.2.4
Operating System: Windows 8

Re: Error: MySQL shutdown unexpectedly

Postby riopiedra » 13. March 2022 11:48

Altrea wrote:your mysql database needs to be repaired.

To do this please open the XAMPP Shell by clicking the Shell button in your XAMPP Control Panel and execute the following command:
Code: Select all
mysqld --console --skip-grant-tables --skip-external-locking


Leave this black command line window open and click on the Shell button in the Control Panel again to open a second command line window and execute this command:
Code: Select all
mysqlcheck -r --databases mysql --use-frm


After that you Can close both command line Windows and try to start mysql again normally from your XAMPP control panel


Thank you, dear Altrea for your solution! It did not work in whole for me, but the first part of your solution took me to the desired result.
After starting the mysql server with the shell command:

Code: Select all
mysqld --console --skip-grant-tables --skip-external-locking


And keeping that window open, I started the Apache server using the menu of the xampp control window.
Then I went to the home page of my site, and verified that it is working. After that I logged in to the phpmyadmin page as usual (I am in the same machine that is running xampp, so I used the "root" loginname), and selected the mysql database in the menu.
Then I scrolled to the bottom of the page, and selected all the tables (using the "Check All" checkbox).
In the dropdown menu "With Selected ...", I selected "Check Table".
As expected the mysql.db table was corrupted.
I selected it, and in the dropdown menu "With Selected ...", I selected "Repair Table".
Then I logged off phpmyadmin.
In the xampp control window I stopped mysql and Apache servers. I also closed the Shell window.
Then I quit the xampp control (just in case), and restarted it again.
Then, using the menu of the xampp control I started the mysql and the Apache servers.
The problem was solved.
riopiedra
 
Posts: 2
Joined: 13. March 2021 11:52
XAMPP version: 3.2.4
Operating System: Windows 10

Re: Error: MySQL shutdown unexpectedly

Postby djmack2022@yahoo.com » 07. September 2022 17:56

Using the steps above, I have been able to recover the DB and run it in XAMPP.

But, I have a log sequence number error.

2022-09-07 10:51:05 29 [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.

Can you please help me reset the log sequence number so this error goes away?

Thanks.
Dave.
djmack2022@yahoo.com
 
Posts: 1
Joined: 07. September 2022 17:53
XAMPP version: 3.3.0
Operating System: win 11

Re: Error: MySQL shutdown unexpectedly

Postby huseintaha » 13. December 2022 16:55

Altrea wrote:Search for the following files in your \xampp\mysql\ folder and delete them:

  • ib_logfile0
  • ib_logfile1
  • aria_log_control



i have same error i remove ib_logfile0
ib_logfile1
aria_log_control

the same error at
# mysqlcheck -r --databases mysql --use-frm
mysqlcheck: Got error: 2002: Can't connect to MySQL server on 'localhost' (10061) when trying to connect

and this result for step 1
mysqld --console --skip-grant-tables --skip-external-locking


Setting environment for using XAMPP for Windows.
pc@DESKTOP-0SR7FM4 d:\xampp
# mysqld --console --skip-grant-tables --skip-external-locking
2022-12-13 17:36:35 0 [Note] Using unique option prefix 'key_buffer' is error-prone and can break in the future. Please use the full name 'key_buffer_size' instead.
2022-12-13 17:36:35 0 [Note] mysqld (mysqld 10.3.16-MariaDB) starting as process 20160 ...
2022-12-13 17:36:35 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2022-12-13 17:36:35 0 [Note] InnoDB: Uses event mutexes
2022-12-13 17:36:35 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2022-12-13 17:36:35 0 [Note] InnoDB: Number of pools: 1
2022-12-13 17:36:35 0 [Note] InnoDB: Using SSE2 crc32 instructions
2022-12-13 17:36:35 0 [Note] InnoDB: Initializing buffer pool, total size = 10M, instances = 1, chunk size = 10M
2022-12-13 17:36:35 0 [Note] InnoDB: Completed initialization of buffer pool
2022-12-13 17:36:35 0 [Note] InnoDB: Setting log file D:\XAMPP\mysql\data\ib_logfile101 size to 5242880 bytes
2022-12-13 17:36:35 0 [Note] InnoDB: Setting log file D:\XAMPP\mysql\data\ib_logfile1 size to 5242880 bytes
2022-12-13 17:36:35 0 [Note] InnoDB: Renaming log file D:\XAMPP\mysql\data\ib_logfile101 to D:\XAMPP\mysql\data\ib_logfile0
2022-12-13 17:36:35 0 [Note] InnoDB: New log files created, LSN=12258325
2022-12-13 17:36:35 0 [ERROR] InnoDB: Page [page id: space=0, page number=4] log sequence number 17043745 is in the future! Current system log sequence number 12258837.
2022-12-13 17:36:35 0 [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.
2022-12-13 17:36:35 0 [ERROR] InnoDB: Page [page id: space=0, page number=11] log sequence number 20611167 is in the future! Current system log sequence number 12258837.
2022-12-13 17:36:35 0 [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.
2022-12-13 17:36:35 0 [ERROR] InnoDB: Page [page id: space=0, page number=440] log sequence number 16300021 is in the future! Current system log sequence number 12258837.
2022-12-13 17:36:35 0 [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.
2022-12-13 17:36:35 0 [ERROR] InnoDB: Page [page id: space=0, page number=1] log sequence number 18258507 is in the future! Current system log sequence number 12258837.
2022-12-13 17:36:35 0 [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.
2022-12-13 17:36:35 0 [ERROR] InnoDB: Page [page id: space=0, page number=8] log sequence number 20697514 is in the future! Current system log sequence number 12258837.
2022-12-13 17:36:35 0 [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.
2022-12-13 17:36:35 0 [ERROR] InnoDB: Page [page id: space=0, page number=338] log sequence number 20706088 is in the future! Current system log sequence number 12258837.
2022-12-13 17:36:35 0 [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.
2022-12-13 17:36:35 0 [ERROR] InnoDB: Page [page id: space=0, page number=10] log sequence number 21693978 is in the future! Current system log sequence number 12258837.
2022-12-13 17:36:35 0 [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.
2022-12-13 17:36:35 0 [ERROR] InnoDB: Page [page id: space=0, page number=12] log sequence number 20832095 is in the future! Current system log sequence number 12258837.
2022-12-13 17:36:35 0 [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.
2022-12-13 17:36:35 0 [ERROR] InnoDB: Page [page id: space=0, page number=442] log sequence number 16777820 is in the future! Current system log sequence number 12258837.
2022-12-13 17:36:35 0 [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.
2022-12-13 17:36:35 0 [ERROR] InnoDB: Page [page id: space=0, page number=307] log sequence number 17188194 is in the future! Current system log sequence number 12258837.
2022-12-13 17:36:35 0 [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.
2022-12-13 17:36:35 0 [ERROR] InnoDB: Page [page id: space=0, page number=308] log sequence number 17188236 is in the future! Current system log sequence number 12258837.
2022-12-13 17:36:35 0 [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.
2022-12-13 17:36:35 0 [ERROR] InnoDB: Page [page id: space=0, page number=470] log sequence number 84466255 is in the future! Current system log sequence number 12258837.
2022-12-13 17:36:35 0 [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.
2022-12-13 17:36:36 0 [ERROR] InnoDB: Page [page id: space=0, page number=471] log sequence number 105019670 is in the future! Current system log sequence number 12258837.
2022-12-13 17:36:36 0 [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.
2022-12-13 17:36:36 0 [ERROR] InnoDB: Page [page id: space=0, page number=473] log sequence number 132722288 is in the future! Current system log sequence number 12258837.
2022-12-13 17:36:36 0 [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.
2022-12-13 17:36:36 0 [ERROR] InnoDB: Page [page id: space=0, page number=340] log sequence number 21846409 is in the future! Current system log sequence number 12258837.
2022-12-13 17:36:36 0 [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.
2022-12-13 17:36:36 0 [ERROR] InnoDB: Page [page id: space=0, page number=341] log sequence number 21847386 is in the future! Current system log sequence number 12258837.
2022-12-13 17:36:36 0 [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.
2022-12-13 17:36:36 0 [ERROR] InnoDB: Page [page id: space=0, page number=342] log sequence number 20697514 is in the future! Current system log sequence number 12258837.
2022-12-13 17:36:36 0 [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.
2022-12-13 17:36:36 0 [ERROR] InnoDB: Page [page id: space=0, page number=359] log sequence number 17843375 is in the future! Current system log sequence number 12258837.
2022-12-13 17:36:36 0 [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.
2022-12-13 17:36:36 0 [ERROR] InnoDB: Page [page id: space=0, page number=375] log sequence number 17188236 is in the future! Current system log sequence number 12258837.
2022-12-13 17:36:36 0 [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.
2022-12-13 17:36:36 0 [ERROR] InnoDB: Page [page id: space=0, page number=363] log sequence number 147185420 is in the future! Current system log sequence number 12258837.
2022-12-13 17:36:36 0 [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.
2022-12-13 17:36:36 0 [ERROR] InnoDB: Page [page id: space=0, page number=360] log sequence number 147215246 is in the future! Current system log sequence number 12258837.
2022-12-13 17:36:36 0 [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.
2022-12-13 17:36:36 0 [ERROR] InnoDB: Page [page id: space=0, page number=460] log sequence number 131220616 is in the future! Current system log sequence number 12258837.
2022-12-13 17:36:36 0 [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.
2022-12-13 17:36:36 0 [ERROR] InnoDB: Page [page id: space=0, page number=474] log sequence number 131220616 is in the future! Current system log sequence number 12258837.
2022-12-13 17:36:36 0 [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.
2022-12-13 17:36:36 0 [ERROR] InnoDB: Page [page id: space=0, page number=410] log sequence number 109449761 is in the future! Current system log sequence number 12258837.
2022-12-13 17:36:36 0 [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.
2022-12-13 17:36:36 0 [ERROR] InnoDB: Page [page id: space=0, page number=479] log sequence number 110625824 is in the future! Current system log sequence number 12258837.
2022-12-13 17:36:36 0 [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.
2022-12-13 17:36:36 0 [ERROR] InnoDB: Page [page id: space=0, page number=441] log sequence number 17998905 is in the future! Current system log sequence number 12258837.
2022-12-13 17:36:36 0 [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.
2022-12-13 17:36:36 0 [ERROR] InnoDB: Page [page id: space=0, page number=444] log sequence number 37464476 is in the future! Current system log sequence number 12258837.
2022-12-13 17:36:36 0 [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.
2022-12-13 17:36:36 0 [ERROR] InnoDB: Page [page id: space=0, page number=452] log sequence number 81928836 is in the future! Current system log sequence number 12258837.
2022-12-13 17:36:36 0 [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.
2022-12-13 17:36:36 0 [ERROR] InnoDB: Page [page id: space=0, page number=465] log sequence number 85966914 is in the future! Current system log sequence number 12258837.
2022-12-13 17:36:36 0 [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.
2022-12-13 17:36:36 0 [ERROR] InnoDB: Page [page id: space=0, page number=466] log sequence number 89917403 is in the future! Current system log sequence number 12258837.
2022-12-13 17:36:36 0 [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.
2022-12-13 17:36:36 0 [ERROR] InnoDB: Page [page id: space=0, page number=490] log sequence number 102392339 is in the future! Current system log sequence number 12258837.
2022-12-13 17:36:36 0 [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.
2022-12-13 17:36:36 0 [ERROR] InnoDB: Page [page id: space=0, page number=511] log sequence number 106336569 is in the future! Current system log sequence number 12258837.
2022-12-13 17:36:36 0 [ERROR] InnoDB: Your dat0020initialized@0020master_info@0020from@0020@0027master@002d2022@0040002d12@0040002d13@00400020@004000209@0040003a30@0040003a31@004000207@00400020@0040005berror@0040005d@00400020failed@00400020to@00400020create@00400020a@00400020new@00400020master@0040.info'
2022-12-13 17:36:40 7 [ERROR] Failed to create a new master info file (file 'D:\XAMPP\mysql\data\master-2022@002d12@002d13@002010@003a11@003a10@00207@0020@005berror@005d@0020initialized@0020master_info@0020from@0020@0027master@0@003a31@00207@0020@005bnote@005d@0020reading@0020master_info@003a@0020@0027master@002d2022@0040002d12@0040002d13@00400020@004000208@0040003a42@0040003a44@004000207@00400020@00.info' Relay_info:'relay-log-2022@002d12@002d13@002010@003a11@003a10@00207@0020@005bnote@005d@0020added@0020new@0020master_info@0020@00272022@002d12@002d13@0020@00209@003a30@003a31@00207@0020@005bnote@005d@0020reading@0020master_info@003a@0020@0027master@002d2022@0040002d12@0040002d13@00400020@004000208@0040003a42@0040003a44@004000207@00400020@00.info'
2022-12-13 17:36:40 7 [ERROR] Failed to create a new master info file (file 'D:\XAMPP\mysql\data\master-2022@002d12@002d13@002010@003a11@003a10@00207@0020@005bnote@005d@0020added@0020new@0020master_info@0020@00272022@002d12@002d13@0020@00209@003a30@003a31@00207@0020@005bnote@005d@0020reading@0020master_info@003a@0020@0027master@002d2022@0040002d12@0040002d13@00400020@004000208@0040003a42@0040003a44@004000207@00400020@00.info', errno 2)
2022-12-13 17:36:40 7 [ERROR] Initialized Master_info from 'master-2022@002d12@002d13@002010@003a11@003a10@00207@0020@005bnote@005d@0020added@0020new@0020master_info@0020@00272022@002d12@002d13@0020@00209@003a30@003a31@00207@0020@005bnote@005d@0020reading@0020master_info@003a@0020@0027master@002d2022@0040002d12@0040002d13@00400020@004000208@0040003a42@0040003a44@004000207@00400020@00.info' failed
2022-12-13 17:36:40 7 [Note] Added new Master_info '2022-12-13 10:11:10 7 [Note] Added new Master_info '2022-12-13 9:30:31 7 [Note] Reading Master_info: 'master-2022@002d12@002d13@0020@00208@003a42@003a44@00207@0020@005bnote@005d@0020added@002' to hash table
2022-12-13 17:36:40 7 [Note] Reading Master_info: 'master-2022@002d12@002d13@002010@003a11@003a10@00200@0020@005bwarning@005d@0020reading@0020of@0020some@0020master_infarning@005d@0020reading@0020of@0020some@0020master_info@0020entries@0020failed@000d.info'
2022-12-13 17:36:40 7 [Note] Added new Master_info '2022-12-13 10:11:10 0 [Warning] Reading of some Master_info entries ' to hash table
': Slave I/O thread: Start asynchronous replication to master '@:3306' in log '' at position 4nfo entries failed
2022-12-13 17:36:40 7 [Note] Started replication for '2022-12-13 10:11:10 0 [Warning] Reading of some Master_info entrie' failed
': Slave I/O: Fatal error: Invalid (empty) username when attempting to connect to the master server. Connection attempt terminated. Internal MariaDB error code: 1593
2022-12-13 17:36:40 7 [Note] Reading Master_info: 'master-2022@002d12@002d13@002010@003a11@003a10@00200@0020@005berror@005d@0020failed@0020to@0020initialize@0020multi@002005d@0020reading@0020of@0020some@0020master_info@0020entries@0020failed@000d.000009' position: 4
': Slave I/O thread killed while connecting to master1:10 0 [Warning] Reading of some Master_info entries failed
': Slave I/O thread exiting, read up to log 'FIRST', position 4rning] Reading of some Master_info entries failed
2022-12-13 17:36:40 7 [Note] Initialized Master_info from 'master-2022@002d12@002d13@002010@003a11@003a10@00200@0020@005berror@005d@0020failed@0020to@0020initialize@0020multi@0020master@0020structures@000d.info'
2022-12-13 17:36:40 7 [Note] Added new Master_info '2022-12-13 10:11:10 0 [ERROR] Failed to initialize multi master stru' to hash table
': Slave I/O thread: Start asynchronous replication to master '@:3306' in log '' at position 4 master structures
': Slave I/O: Fatal error: Invalid (empty) username when attempting to connect to the master server. Connection attempt terminated. Internal MariaDB error code: 1593
2022-12-13 17:36:40 7 [Note] Started replication for '2022-12-13 10:11:10 0 [ERROR] Failed to initialize multi master st'uctures
': Slave SQL thread initialized, starting replication in log 'FIRST' at position 0, relay log '.\mysql-relay-bin-2022@002d12@002d13@002010@003a11@003a10@00200@0020@005berror@005d@0020failed@0020to@0020initialize@0020multi@0020master@0020structures@000d.000009' position: 4
': Slave I/O thread killed while connecting to master1:10 0 [ERROR] Failed to initialize multi master structures
': Slave I/O thread exiting, read up to log 'FIRST', position 4ROR] Failed to initialize multi master structures
2022-12-13 17:36:40 7 [Note] Reading Master_info: 'master-2022@002d12@002d13@002010@003a11@003a10@00200@0020@005berror@005d@0020aborting@000d.info' Relay_info:'relay-log-2022@002d12@002d13@002010@003a11@003a10@00200@0020@005berror@005d@0020aborting@000d.info'
2022-12-13 17:36:40 7 [Note] Initialized Master_info from 'master-2022@002d12@002d13@002010@003a11@003a10@00200@0020@005berror@005d@0020aborting@000d.info'
' to hash table6:40 7 [Note] Added new Master_info '2022-12-13 10:11:10 0 [ERROR] Aborting
': Slave I/O thread: Start asynchronous replication to master '@:3306' in log '' at position 4
'022-12-13 17:36:40 7 [Note] Started replication for '2022-12-13 10:11:10 0 [ERROR] Aborting
': Slave SQL thread initialized, starting replication in log 'FIRST' at position 0, relay log '.\mysql-relay-bin-2022@002d12@002d13@002010@003a11@003a10@00200@0020@005berror@005d@0020aborting@000d.000009' position: 4
': Slave I/O: Fatal error: Invalid (empty) username when attempting to connect to the master server. Connection attempt terminated. Internal MariaDB error code: 1593
2022-12-13 17:36:40 7 [Note] Reading Master_info: 'master-@000d.info' Relay_info:'relay-log-@000d.info'
': Slave I/O thread killed while connecting to master1:10 0 [ERROR] Aborting
': Slave I/O thread exiting, read up to log 'FIRST', position 4ROR] Aborting
2022-12-13 17:36:41 7 [Note] Initialized Master_info from 'master-@000d.info'
' to hash table6:41 7 [Note] Added new Master_info '
': Slave I/O thread: Start asynchronous replication to master '@:3306' in log '' at position 4
'022-12-13 17:36:41 7 [Note] Started replication for '
': Slave SQL thread initialized, starting replication in log 'FIRST' at position 0, relay log '.\mysql-relay-bin-@000d.000014' position: 4
2022-12-13 17:36:41 0 [Warning] Reading of some Master_info entries failed
2022-12-13 17:36:41 0 [ERROR] Failed to initialize multi master structures
': Slave I/O: Fatal error: Invalid (empty) username when attempting to connect to the master server. Connection attempt terminated. Internal MariaDB error code: 1593
': Slave I/O thread killed while connecting to master
2022-12-13 17:36:41 0 [ERROR] Aborting

': Slave I/O thread exiting, read up to log 'FIRST', position 4

pc@DESKTOP-0SR7FM4 d:\xampp
#
huseintaha
 
Posts: 7
Joined: 29. May 2022 17:54
XAMPP version: 7.3.6
Operating System: win10

Re: Error: MySQL shutdown unexpectedly

Postby huseintaha » 13. February 2023 02:34

Altrea wrote:your mysql database needs to be repaired.

To do this please open the XAMPP Shell by clicking the Shell button in your XAMPP Control Panel and execute the following command:
Code: Select all
mysqld --console --skip-grant-tables --skip-external-locking


Leave this black command line window open and click on the Shell button in the Control Panel again to open a second command line window and execute this command:
Code: Select all
mysqlcheck -r --databases mysql --use-frm


After that you Can close both command line Windows and try to start mysql again normally from your XAMPP control panel


when i make first step success execute
mysqld --console --skip-grant-tables --skip--external--locking /* sucsess*/

but secand step not execute
mysqlcheck -r --databases mysql --use-frm /* not sucess */

and raise this error
pc@DESKTOP-0SR7FM4 d:\xampp
# mysqlcheck -r --databases mysql --use-frm
mysqlcheck: Got error: 2002: Can't connect to MySQL server on 'localhost' (10061) when trying to connect
huseintaha
 
Posts: 7
Joined: 29. May 2022 17:54
XAMPP version: 7.3.6
Operating System: win10


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 117 guests