【问题标题】:XAMPP - MySQL Shut down Unexpectedly at start in XAMPP controlXAMPP - MySQL 在 XAMPP 控件启动时意外关闭
【发布时间】:2022-01-22 16:28:03
【问题描述】:

当我打开 XAMPP 控制应用程序并单击启动 MySQL 按钮时,它不会启动并且它给我一个错误。它启动并在几秒钟后自动关闭。 XAMPP 控制应用程序的错误如下所述

12:03:32 PM [mysql] 正在尝试启动 MySQL 应用程序...

12:03:32 PM [mysql] 检测到状态变化:正在运行

12:03:34 PM [mysql] 检测到状态更改:已停止

12:03:34 PM [mysql] 错误:MySQL 意外关闭。

12:03:34 PM [mysql] 这可能是由于端口阻塞,丢失 依赖关系,

12:03:34 PM [mysql] 权限不当、崩溃或关闭 另一种方法。

12:03:34 PM [mysql] 按 Logs 按钮查看错误日志和 检查

12:03:34 PM [mysql] Windows 事件查看器获取更多线索

12:03:34 PM [mysql] 如果您需要更多帮助,请复制并发布此内容

12:03:34 PM [mysql] 论坛上的整个日志窗口

以下是我的错误日志中的错误

2021-12-21 12:03:32 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions

2021-12-21 12:03:32 0 [Note] InnoDB: Uses event mutexes

2021-12-21 12:03:32 0 [Note] InnoDB: Compressed tables use zlib 1.2.11

2021-12-21 12:03:32 0 [Note] InnoDB: Number of pools: 1

2021-12-21 12:03:32 0 [Note] InnoDB: Using SSE2 crc32 instructions

2021-12-21 12:03:32 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M

2021-12-21 12:03:32 0 [Note] InnoDB: Completed initialization of buffer pool

2021-12-21 12:03:32 0 [Note] InnoDB: Starting crash recovery from checkpoint LSN=300288

2021-12-21 12:03:32 0 [Warning] InnoDB: Are you sure you are using the right ib_logfiles to start up the database? Log sequence number in the ib_logfiles is 300288, less than the log sequence number in the first system tablespace file header, 300360.

2021-12-21 12:03:32 0 [Note] InnoDB: 128 out of 128 rollback segments are active.

2021-12-21 12:03:32 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"

2021-12-21 12:03:32 0 [Note] InnoDB: Creating shared tablespace for temporary tables

2021-12-21 12:03:32 0 [Note] InnoDB: Setting file 'D:\XAMMP\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...

2021-12-21 12:03:32 0 [Note] InnoDB: File 'D:\XAMMP\mysql\data\ibtmp1' size is now 12 MB.

2021-12-21 12:03:32 0 [Note] InnoDB: Waiting for purge to start

2021-12-21 12:03:32 0 [Note] InnoDB: 10.4.22 started; log sequence number 300297; transaction id 170

2021-12-21 12:03:32 0 [Note] InnoDB: Loading buffer pool(s) from D:\XAMMP\mysql\data\ib_buffer_pool

2021-12-21 12:03:32 0 [Note] Plugin 'FEEDBACK' is disabled.

2021-12-21 12:03:32 0 [Note] Server socket created on IP: '::'.

2021-12-21 12:03:32 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.



2021-12-21 12:03:32 0 [ERROR] Do you already have another mysqld server running on port: 3306 ?

2021-12-21 12:03:32 0 [ERROR] Aborting

什么可能导致问题,我该如何解决?提前谢谢你

【问题讨论】:

  • 你占用了 3306 端口。检查另一个实例或任何程序是否正在使用相同的端口
  • 尝试从 MySQL 端以及 XAMPP 配置设置更改端口。但问题没有改变
  • 使用 Windows 任务管理器验证 mysqld 是否正在运行。手动停止它并尝试启动 XAMPP。

标签: php xampp


【解决方案1】:

我成功了。未更改端口并将其默认设置为 3306。执行以下操作。

  1. XAMMP\mysql\data 文件夹重命名为您希望的任何其他名称(例如data_old
  2. XAMMP\mysql 中新建一个文件夹,命名为data,并复制其中的所有文件,包括ibdata1
  3. 关闭所有正在运行的程序并重新启动 XAMPP

无需从data_old 复制文件,但如果您之前已经构建过数据库,那么您可以从data_old 复制一些文件。

特别感谢所有支持的人。

【讨论】:

    猜你喜欢
    • 2020-03-22
    • 2015-06-10
    • 2019-08-12
    • 2020-03-28
    • 2019-09-16
    • 2021-07-25
    相关资源
    最近更新 更多