首页 > 解决方案 > Xampp MySQL 尝试启动并自动停止

问题描述

完成此操作后,Xampp 告诉我:

21:13:57  [main]    Control Panel Ready
21:14:06  [mysql]   Attempting to start MySQL app...
21:14:06  [mysql]   Status change detected: running
21:14:12  [mysql]   Status change detected: stopped
21:14:12  [mysql]   Error: MySQL shutdown unexpectedly.
21:14:12  [mysql]   This may be due to a blocked port, missing dependencies, 
21:14:12  [mysql]   improper privileges, a crash, or a shutdown by another method.
21:14:12  [mysql]   Press the Logs button to view error logs and check
21:14:12  [mysql]   the Windows Event Viewer for more clues
21:14:12  [mysql]   If you need more help, copy and post this
21:14:12  [mysql]   entire log window on the forums

所以我检查了mysql的日志,这就是它所说的:

InnoDB: using atomic writes.
2020-12-21 21:14:07 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2020-12-21 21:14:07 0 [Note] InnoDB: Uses event mutexes
2020-12-21 21:14:07 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-12-21 21:14:07 0 [Note] InnoDB: Number of pools: 1
2020-12-21 21:14:07 0 [Note] InnoDB: Using SSE2 crc32 instructions
2020-12-21 21:14:07 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2020-12-21 21:14:07 0 [Note] InnoDB: Completed initialization of buffer pool
2020-12-21 21:14:11 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2020-12-21 21:14:11 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2020-12-21 21:14:11 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2020-12-21 21:14:11 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2020-12-21 21:14:11 0 [Note] InnoDB: Waiting for purge to start
2020-12-21 21:14:11 0 [Note] InnoDB: 10.4.13 started; log sequence number 6331998436; transaction id 3576318
2020-12-21 21:14:11 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2020-12-21 21:14:11 0 [Note] Plugin 'FEEDBACK' is disabled.
2020-12-21 21:14:11 0 [Note] InnoDB: Buffer pool(s) load completed at 201221 21:14:11
2020-12-21 21:14:11 0 [Note] Server socket created on IP: '::'.

我没有发现类似于我的错误日志的问题,但也许我错过了。我见过不同的错误,但在这个日志中,我什至无法弄清楚错误是什么。是因为文件已满吗?(12MB,如日志中所述)

今天早些时候,它确实有效,但现在突然不再有效了。有谁知道如何解决这个问题以及是什么原因造成的?

标签: mysqlxampp

解决方案


遇到了同样的问题,我只是这样做了,它解决了这个问题:

  1. 退出 XAMPP
  2. 剪切 C:\xampp\mysql\backup 中的所有文件
  3. 粘贴和替换 C:\xampp\mysql\data 中的文件
  4. 以管理员身份运行 XAMPP

类似的错误日志: 类似的错误日志

完成上述步骤后:

完成上述步骤后


推荐阅读