【问题标题】:Xampp MySQL tries to start and automatically stopsXampp MySQL 尝试启动并自动停止
【发布时间】:2020-12-21 20:18:31
【问题描述】:

这样做之后,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)

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

【问题讨论】:

  • 检查您的 Windows 任务管理器和服务。看起来 MySQL 仍在运行。阻止他们再试一次。

标签: mysql xampp


【解决方案1】:

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

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

类似的错误日志:

按照上述步骤完成后:

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-09-24
    • 2017-03-26
    • 2014-02-12
    • 2020-10-20
    • 1970-01-01
    • 2012-04-04
    • 2016-08-04
    • 2018-11-08
    相关资源
    最近更新 更多