please help me with this error :(

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

please help me with this error :(

Postby Sobiboom20 » 07. May 2022 12:22

3:52:52 PM [mysql] Error: MySQL shutdown unexpectedly.
3:52:52 PM [mysql] This may be due to a blocked port, missing dependencies,
3:52:52 PM [mysql] improper privileges, a crash, or a shutdown by another method.
3:52:52 PM [mysql] Press the Logs button to view error logs and check
3:52:52 PM [mysql] the Windows Event Viewer for more clues
3:52:52 PM [mysql] If you need more help, copy and post this
3:52:52 PM [mysql] entire log window on the forums


2022-05-07 15:52:50 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2022-05-07 15:52:50 0 [Note] InnoDB: Uses event mutexes
2022-05-07 15:52:50 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2022-05-07 15:52:50 0 [Note] InnoDB: Number of pools: 1
2022-05-07 15:52:50 0 [Note] InnoDB: Using SSE2 crc32 instructions
2022-05-07 15:52:50 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2022-05-07 15:52:50 0 [Note] InnoDB: Completed initialization of buffer pool
2022-05-07 15:52:50 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2022-05-07 15:52:50 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2022-05-07 15:52:50 0 [Note] InnoDB: Setting file '\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2022-05-07 15:52:50 0 [Note] InnoDB: File '\xampp\mysql\data\ibtmp1' size is now 12 MB.
2022-05-07 15:52:50 0 [Note] InnoDB: Waiting for purge to start
2022-05-07 15:52:50 0 [Note] InnoDB: 10.4.21 started; log sequence number 53643709; transaction id 34838
2022-05-07 15:52:50 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2022-05-07 15:52:50 0 [Note] Plugin 'FEEDBACK' is disabled.
2022-05-07 15:52:50 0 [Note] Server socket created on IP: '::'.
Sobiboom20
 
Posts: 5
Joined: 03. May 2022 12:44
XAMPP version: 3.3.0
Operating System: windows 11

Re: please help me with this error :(

Postby Altrea » 07. May 2022 12:29

Hi,

Try to start MariaDB as console application and tell us what it responses. To do so, please:
  • Open a new XAMPP Shell by clicking the Shell Button in your control panel
  • type in the following command
    Code: Select all
    mysqld --defaults-file=mysql\bin\my.ini --standalone --console
  • copy us the response of the console
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: 11954
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: please help me with this error :(

Postby Sobiboom20 » 07. May 2022 12:50

.
Last edited by Sobiboom20 on 07. May 2022 14:13, edited 1 time in total.
Sobiboom20
 
Posts: 5
Joined: 03. May 2022 12:44
XAMPP version: 3.3.0
Operating System: windows 11

Re: please help me with this error :(

Postby Sobiboom20 » 07. May 2022 14:12

Altrea wrote:Hi,

Try to start MariaDB as console application and tell us what it responses. To do so, please:
  • Open a new XAMPP Shell by clicking the Shell Button in your control panel
  • type in the following command
    Code: Select all
    mysqld --defaults-file=mysql\bin\my.ini --standalone --console
  • copy us the response of the console





# mysqld --defaults-file=mysql\bin\my.ini --standalone --console
2022-05-07 16:37:43 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-05-07 16:37:43 0 [Note] mysqld (mysqld 10.4.21-MariaDB) starting as process 1836 ...
2022-05-07 16:37:43 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2022-05-07 16:37:43 0 [Note] InnoDB: Uses event mutexes
2022-05-07 16:37:43 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2022-05-07 16:37:43 0 [Note] InnoDB: Number of pools: 1
2022-05-07 16:37:43 0 [Note] InnoDB: Using SSE2 crc32 instructions
2022-05-07 16:37:43 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2022-05-07 16:37:43 0 [Note] InnoDB: Completed initialization of buffer pool
2022-05-07 16:37:43 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2022-05-07 16:37:43 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2022-05-07 16:37:43 0 [Note] InnoDB: Setting file '\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2022-05-07 16:37:43 0 [Note] InnoDB: File '\xampp\mysql\data\ibtmp1' size is now 12 MB.
2022-05-07 16:37:43 0 [Note] InnoDB: Waiting for purge to start
2022-05-07 16:37:43 0 [Note] InnoDB: 10.4.21 started; log sequence number 53643763; transaction id 34838
2022-05-07 16:37:43 0 [Note] InnoDB: Loading buffer pool(s) from c:\xampp\mysql\data\ib_buffer_pool
2022-05-07 16:37:43 0 [Note] Plugin 'FEEDBACK' is disabled.
2022-05-07 16:37:43 0 [Note] Server socket created on IP: '::'.
2022-05-07 16:37:43 0 [ERROR] mysqld: Table '.\mysql\db' is marked as crashed and last (automatic?) repair failed
2022-05-07 16:37:43 0 [ERROR] Fatal error: Can't open and lock privilege tables: Table '.\mysql\db' is marked as crashed and last (automatic?) repair failed
2022-05-07 16:37:43 0 [ERROR] Aborting
Sobiboom20
 
Posts: 5
Joined: 03. May 2022 12:44
XAMPP version: 3.3.0
Operating System: windows 11

Re: please help me with this error :(

Postby Altrea » 07. May 2022 17:18

Sobiboom20 wrote:2022-05-07 16:37:43 0 [ERROR] mysqld: Table '.\mysql\db' is marked as crashed and last (automatic?) repair failed
2022-05-07 16:37:43 0 [ERROR] Fatal error: Can't open and lock privilege tables: Table '.\mysql\db' is marked as crashed and last (automatic?) repair failed
2022-05-07 16:37:43 0 [ERROR] Aborting

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


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 118 guests