Xampp mysql 服务器突然不启动
Xampp mysql server suddenly not starting
几个小时前我使用了 Xampp 想再次启动 mysql 服务器但是它给了我一条错误消息说 mysql 意外关闭
enter image description here
是的,端口未被使用,用 netstat -an 检查了它 | findstr "3306" 命令
甚至尝试将端口更改为 3307,但都不起作用
并且错误日志显示没有错误:
2021-10-13 19:58:12 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2021-10-13 19:58:12 0 [Note] InnoDB: Uses event mutexes
2021-10-13 19:58:12 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2021-10-13 19:58:12 0 [Note] InnoDB: Number of pools: 1
2021-10-13 19:58:12 0 [Note] InnoDB: Using SSE2 crc32 instructions
2021-10-13 19:58:12 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2021-10-13 19:58:12 0 [Note] InnoDB: Completed initialization of buffer pool
2021-10-13 19:58:12 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2021-10-13 19:58:12 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2021-10-13 19:58:12 0 [Note] InnoDB: Setting file 'D:\Xampp\Xampphpupgrade\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2021-10-13 19:58:12 0 [Note] InnoDB: File 'D:\Xampp\Xampphpupgrade\mysql\data\ibtmp1' size is now 12 MB.
2021-10-13 19:58:12 0 [Note] InnoDB: Waiting for purge to start
2021-10-13 19:58:12 0 [Note] InnoDB: 10.4.21 started; log sequence number 7528999; transaction id 39501
2021-10-13 19:58:12 0 [Note] InnoDB: Loading buffer pool(s) from D:\Xampp\Xampphpupgrade\mysql\data\ib_buffer_pool
2021-10-13 19:58:12 0 [Note] Plugin 'FEEDBACK' is disabled.
2021-10-13 19:58:12 0 [Note] Server socket created on IP: '::'.
如果您的 MySql 是新的,没有重要的数据库,您可以尝试以下步骤:
- 关闭您的 Xampp 服务器
- 转到C:\xampp\mysql\data目录
- 删除 ibdata1 文件
- 重新启动您的 Xampp 服务器
删除 ibdata1 文件可能会破坏您的表,备份所有内容。
几个小时前我使用了 Xampp 想再次启动 mysql 服务器但是它给了我一条错误消息说 mysql 意外关闭 enter image description here
是的,端口未被使用,用 netstat -an 检查了它 | findstr "3306" 命令 甚至尝试将端口更改为 3307,但都不起作用
并且错误日志显示没有错误:
2021-10-13 19:58:12 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2021-10-13 19:58:12 0 [Note] InnoDB: Uses event mutexes
2021-10-13 19:58:12 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2021-10-13 19:58:12 0 [Note] InnoDB: Number of pools: 1
2021-10-13 19:58:12 0 [Note] InnoDB: Using SSE2 crc32 instructions
2021-10-13 19:58:12 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2021-10-13 19:58:12 0 [Note] InnoDB: Completed initialization of buffer pool
2021-10-13 19:58:12 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2021-10-13 19:58:12 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2021-10-13 19:58:12 0 [Note] InnoDB: Setting file 'D:\Xampp\Xampphpupgrade\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2021-10-13 19:58:12 0 [Note] InnoDB: File 'D:\Xampp\Xampphpupgrade\mysql\data\ibtmp1' size is now 12 MB.
2021-10-13 19:58:12 0 [Note] InnoDB: Waiting for purge to start
2021-10-13 19:58:12 0 [Note] InnoDB: 10.4.21 started; log sequence number 7528999; transaction id 39501
2021-10-13 19:58:12 0 [Note] InnoDB: Loading buffer pool(s) from D:\Xampp\Xampphpupgrade\mysql\data\ib_buffer_pool
2021-10-13 19:58:12 0 [Note] Plugin 'FEEDBACK' is disabled.
2021-10-13 19:58:12 0 [Note] Server socket created on IP: '::'.
如果您的 MySql 是新的,没有重要的数据库,您可以尝试以下步骤:
- 关闭您的 Xampp 服务器
- 转到C:\xampp\mysql\data目录
- 删除 ibdata1 文件
- 重新启动您的 Xampp 服务器
删除 ibdata1 文件可能会破坏您的表,备份所有内容。