【发布时间】:2020-08-01 08:33:25
【问题描述】:
当我打开 XAMPP(Windows 10 中的 xampp v3.2.4)并单击启动 MySQL 按钮时,它给了我一个错误。我之前也启动过,现在不行了。
错误:
12:50:26 PM [mysql] Status change detected: stopped
12:50:26 PM [mysql] Error: MySQL shutdown unexpectedly.
12:50:26 PM [mysql] This may be due to a blocked port, missing dependencies,
12:50:26 PM [mysql] improper privileges, a crash, or a shutdown by another method.
12:50:26 PM [mysql] Press the Logs button to view error logs and check
12:50:26 PM [mysql] the Windows Event Viewer for more clues
12:50:26 PM [mysql] If you need more help, copy and post this
12:50:26 PM [mysql] entire log window on the forums
所以,我检查日志:
InnoDB: using atomic writes.
2020-08-01 12:50:25 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2020-08-01 12:50:25 0 [Note] InnoDB: Uses event mutexes
2020-08-01 12:50:25 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-08-01 12:50:25 0 [Note] InnoDB: Number of pools: 1
2020-08-01 12:50:25 0 [Note] InnoDB: Using SSE2 crc32 instructions
2020-08-01 12:50:25 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2020-08-01 12:50:25 0 [Note] InnoDB: Completed initialization of buffer pool
2020-08-01 12:50:25 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2020-08-01 12:50:25 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2020-08-01 12:50:25 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2020-08-01 12:50:25 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2020-08-01 12:50:25 0 [Note] InnoDB: Waiting for purge to start
2020-08-01 12:50:25 0 [Note] InnoDB: 10.4.11 started; log sequence number 51764883; transaction id 105083
2020-08-01 12:50:25 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2020-08-01 12:50:25 0 [Note] Plugin 'FEEDBACK' is disabled.
2020-08-01 12:50:25 0 [Note] Server socket created on IP: '::'.
如何解决这个错误?
【问题讨论】:
-
检查是否已经有服务器,日志显示正常启动
-
@nbk:当然,服务器运行没有任何问题。
-
好,你有一个正在运行的服务器,然后尝试在同一个端口上启动一个新的?
-
@nbk:请看我的回答。