MySQL Error

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

MySQL Error

Postby vendigitalsrls » 29. July 2022 08:33

Hi,

I am writing in this forum because from this morning the MySQL service no longer works.
Here are the logs:

2022-07-29 9:29:49 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2022-07-29 9:29:49 0 [Note] InnoDB: Uses event mutexes
2022-07-29 9:29:49 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2022-07-29 9:29:49 0 [Note] InnoDB: Number of pools: 1
2022-07-29 9:29:49 0 [Note] InnoDB: Using SSE2 crc32 instructions
2022-07-29 9:29:49 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2022-07-29 9:29:49 0 [Note] InnoDB: Completed initialization of buffer pool
2022-07-29 9:29:49 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2022-07-29 9:29:49 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2022-07-29 9:29:49 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2022-07-29 9:29:49 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2022-07-29 9:29:49 0 [Note] InnoDB: Waiting for purge to start
2022-07-29 9:29:49 0 [Note] InnoDB: 10.4.14 started; log sequence number 1268357618; transaction id 410396
2022-07-29 9:29:49 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2022-07-29 9:29:49 0 [Note] Plugin 'FEEDBACK' is disabled.
2022-07-29 9:29:49 0 [Note] Server socket created on IP: '::'.

Until last night everything was working correctly. This morning, once the PC was turned on, the service no longer started.

Thank you in advance for the replies!
vendigitalsrls
 
Posts: 5
Joined: 29. July 2022 08:31
XAMPP version: 3.2.4
Operating System: Windows 11

Re: MySQL Error

Postby Altrea » 29. July 2022 11:14

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

Re: MySQL Error

Postby vendigitalsrls » 29. July 2022 12:54

Hi,

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

Re: MySQL Error

Postby Altrea » 29. July 2022 14:56

your mysql database needs to be repaired.

  • open the XAMPP Shell by clicking the Shell button in your XAMPP Control Panel
  • 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
  • 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: 11936
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: MySQL Error

Postby vendigitalsrls » 29. July 2022 15:53

Hi,

I did the actions he indicated to me.
The mySql does not start yet, now the error I am getting is this:

2022-07-29 16:53:29 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-07-29 16:53:29 0 [Note] mysqld (mysqld 10.4.14-MariaDB) starting as process 7152 ...
InnoDB: using atomic writes.
2022-07-29 16:53:29 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2022-07-29 16:53:29 0 [Note] InnoDB: Uses event mutexes
2022-07-29 16:53:29 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2022-07-29 16:53:29 0 [Note] InnoDB: Number of pools: 1
2022-07-29 16:53:29 0 [Note] InnoDB: Using SSE2 crc32 instructions
2022-07-29 16:53:29 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2022-07-29 16:53:29 0 [Note] InnoDB: Completed initialization of buffer pool
2022-07-29 16:53:29 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2022-07-29 16:53:29 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2022-07-29 16:53:29 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2022-07-29 16:53:29 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2022-07-29 16:53:29 0 [Note] InnoDB: Waiting for purge to start
2022-07-29 16:53:29 0 [Note] InnoDB: 10.4.14 started; log sequence number 1486521500; transaction id 561884
2022-07-29 16:53:29 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2022-07-29 16:53:29 0 [Note] Plugin 'FEEDBACK' is disabled.
2022-07-29 16:53:29 0 [Note] Server socket created on IP: '::'.
2022-07-29 16:53:29 0 [ERROR] Fatal error: Can't open and lock privilege tables: Incorrect file format 'proxies_priv'
2022-07-29 16:53:29 0 [ERROR] Aborting
vendigitalsrls
 
Posts: 5
Joined: 29. July 2022 08:31
XAMPP version: 3.2.4
Operating System: Windows 11

Re: MySQL Error

Postby vendigitalsrls » 02. August 2022 07:08

Hi,

I haven't received an answer to my problem anymore. can you kindly help me?

Thank you
vendigitalsrls
 
Posts: 5
Joined: 29. July 2022 08:31
XAMPP version: 3.2.4
Operating System: Windows 11

Re: MySQL Error

Postby vendigitalsrls » 02. August 2022 10:32

Hi,

she seems to me to have solved.
I deleted all files starting with "proxies_priv" from the mysql folder.
vendigitalsrls
 
Posts: 5
Joined: 29. July 2022 08:31
XAMPP version: 3.2.4
Operating System: Windows 11


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 250 guests