当我尝试从 xampp 控制面板启动 mysql 时,它说:
20:52:08 [mysql] Status change detected: stopped
20:52:08 [mysql] Error: MySQL shutdown unexpectedly.
20:52:08 [mysql] This may be due to a blocked port, missing dependencies,
20:52:08 [mysql] improper privileges, a crash, or a shutdown by another method.
20:52:08 [mysql] Press the Logs button to view error logs and check
20:52:08 [mysql] the Windows Event Viewer for more clues
20:52:08 [mysql] If you need more help, copy and post this
20:52:08 [mysql] entire log window on the forums
以下是日志文件:
2023-05-23 20:52:02 0 [Note] Starting MariaDB 10.4.28-MariaDB source revision c8f2e9a5c0ac5905f28b050b7df5a9ffd914b7e7 as process 8176
2023-05-23 20:52:02 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2023-05-23 20:52:02 0 [Note] InnoDB: Uses event mutexes
2023-05-23 20:52:02 0 [Note] InnoDB: Compressed tables use zlib 1.2.12
2023-05-23 20:52:02 0 [Note] InnoDB: Number of pools: 1
2023-05-23 20:52:02 0 [Note] InnoDB: Using SSE2 crc32 instructions
2023-05-23 20:52:02 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2023-05-23 20:52:02 0 [Note] InnoDB: Completed initialization of buffer pool
2023-05-23 20:52:02 0 [Note] InnoDB: Setting log file C:\xampp\mysql\data\ib_logfile101 size to 5242880 bytes
2023-05-23 20:52:02 0 [Note] InnoDB: Setting log file C:\xampp\mysql\data\ib_logfile1 size to 5242880 bytes
2023-05-23 20:52:02 0 [Note] InnoDB: Renaming log file C:\xampp\mysql\data\ib_logfile101 to C:\xampp\mysql\data\ib_logfile0
2023-05-23 20:52:02 0 [Note] InnoDB: New log files created, LSN=1156629
2023-05-23 20:52:02 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2023-05-23 20:52:02 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2023-05-23 20:52:02 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2023-05-23 20:52:02 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2023-05-23 20:52:02 0 [Note] InnoDB: Waiting for purge to start
2023-05-23 20:52:02 0 [Note] InnoDB: 10.4.28 started; log sequence number 1157132; transaction id 1865
2023-05-23 20:52:02 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2023-05-23 20:52:02 0 [Note] Plugin 'FEEDBACK' is disabled.
2023-05-23 20:52:02 0 [Note] Server socket created on IP: '::'.
解决方案:
https://buildio.dev/error-mysql-shutdown-unexpectedly/
正文必须至少有 30 个字符;你输入了 8 Baaaaa