首页 > 解决方案 > 如何在 XAMPP 中调试 MySQL 错误“MySQL 意外关闭”

问题描述

我正在尝试通过 XAMPP 运行 MySQL 服务器以与 php 连接,并且每次尝试这样做时,都会显示此错误。我已经尝试了从重新安装到更改端口地址的所有方法,但这仍然不起作用。我该如何解决这个错误?

错误

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

错误日志:

2020-06-06 12:13:59 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2020-06-06 12:13:59 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2020-06-06 12:13:59 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2020-06-06 12:13:59 0 [Note] InnoDB: Setting file 'C:\XamppReintalled\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2020-06-06 12:13:59 0 [Note] InnoDB: File 'C:\XamppReintalled\mysql\data\ibtmp1' size is now 12 MB.
2020-06-06 12:13:59 0 [Note] InnoDB: 10.3.15 started; log sequence number 1804856; transaction id 209
2020-06-06 12:13:59 0 [Note] InnoDB: Loading buffer pool(s) from C:\XamppReintalled\mysql\data\ib_buffer_pool
2020-06-06 12:13:59 0 [Note] InnoDB: Buffer pool(s) load completed at 200606 12:13:59
2020-06-06 12:13:59 0 [Note] Plugin 'FEEDBACK' is disabled.
2020-06-06 12:13:59 0 [Note] Server socket created on IP: '::'.
2020-06-06 12:13:59 0 [ERROR] Can't start server: Bind on TCP/IP port. Got error: 10048: Only one usage of each socket address (protocol/network address/port) is normally permitted.


2020-06-06 12:13:59 0 [ERROR] Do you already have another mysqld server running on port: 3308 ?
2020-06-06 12:13:59 0 [ERROR] Aborting

标签: phpmysqlxampp

解决方案


推荐阅读