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: 10730
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 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: 10730
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 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: 10730
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 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: 10730
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 66 guests