MySQL Shutdown Unexpectedly
Posted: 27. July 2022 21:56
# mysqld --defaults-file=mysql\bin\my.ini --standalone --console
2022-07-27 16:48:31 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-27 16:48:31 0 [Note] mysqld (mysqld 10.4.24-MariaDB) starting as process 7876 ...
2022-07-27 16:48:31 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2022-07-27 16:48:31 0 [Note] InnoDB: Uses event mutexes
2022-07-27 16:48:31 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2022-07-27 16:48:31 0 [Note] InnoDB: Number of pools: 1
2022-07-27 16:48:31 0 [Note] InnoDB: Using SSE2 crc32 instructions
2022-07-27 16:48:31 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2022-07-27 16:48:31 0 [Note] InnoDB: Completed initialization of buffer pool
2022-07-27 16:48:31 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2022-07-27 16:48:31 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2022-07-27 16:48:31 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2022-07-27 16:48:31 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2022-07-27 16:48:31 0 [Note] InnoDB: Waiting for purge to start
2022-07-27 16:48:31 0 [Note] InnoDB: 10.4.24 started; log sequence number 69829520; transaction id 50073
2022-07-27 16:48:31 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2022-07-27 16:48:31 0 [Note] Plugin 'FEEDBACK' is disabled.
2022-07-27 16:48:31 0 [Note] Server socket created on IP: '::'.
2022-07-27 16:48:31 0 [ERROR] mysqld: Table '.\mysql\db' is marked as crashed and last (automatic?) repair failed
2022-07-27 16:48:31 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-27 16:48:31 0 [ERROR] Aborting
Having the exact same problem - so here is the result
2022-07-27 16:48:31 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-27 16:48:31 0 [Note] mysqld (mysqld 10.4.24-MariaDB) starting as process 7876 ...
2022-07-27 16:48:31 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2022-07-27 16:48:31 0 [Note] InnoDB: Uses event mutexes
2022-07-27 16:48:31 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2022-07-27 16:48:31 0 [Note] InnoDB: Number of pools: 1
2022-07-27 16:48:31 0 [Note] InnoDB: Using SSE2 crc32 instructions
2022-07-27 16:48:31 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2022-07-27 16:48:31 0 [Note] InnoDB: Completed initialization of buffer pool
2022-07-27 16:48:31 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2022-07-27 16:48:31 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2022-07-27 16:48:31 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2022-07-27 16:48:31 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2022-07-27 16:48:31 0 [Note] InnoDB: Waiting for purge to start
2022-07-27 16:48:31 0 [Note] InnoDB: 10.4.24 started; log sequence number 69829520; transaction id 50073
2022-07-27 16:48:31 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2022-07-27 16:48:31 0 [Note] Plugin 'FEEDBACK' is disabled.
2022-07-27 16:48:31 0 [Note] Server socket created on IP: '::'.
2022-07-27 16:48:31 0 [ERROR] mysqld: Table '.\mysql\db' is marked as crashed and last (automatic?) repair failed
2022-07-27 16:48:31 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-27 16:48:31 0 [ERROR] Aborting
Having the exact same problem - so here is the result