mysql - 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,如日志中所述)
今天早些时候,它确实有效,但现在突然不再有效了。有谁知道如何解决这个问题以及是什么原因造成的?
解决方案
遇到了同样的问题,我只是这样做了,它解决了这个问题:
- 退出 XAMPP
- 剪切 C:\xampp\mysql\backup 中的所有文件
- 粘贴和替换 C:\xampp\mysql\data 中的文件
- 以管理员身份运行 XAMPP
类似的错误日志:
完成上述步骤后:
推荐阅读
- mysql - 检查每个广告系列在一个国家/地区的销售状态是否已更改,并将其分配给结果中每个广告系列的所有国家/地区
- excel - 我不知道为什么我得到运行时错误'1004'对象'_Global的方法'工作表'失败
- android - 找不到 com.snapchat.kit.sdk:core:1.6.5
- python - 根据条件从另一个数据框中设置数据框列的值
- javascript - 如何在 React 中动态渲染数组
- flutter - 如何根据按下的按钮呈现不同的小部件
- oracle - 有没有办法根据 FROM 子句(Oracle)中使用的表显示表名作为 SELECT 子句的结果?
- cassandra - cassandra中列表集合的模型分页
- mongodb - Mongo DB updateOne 查询计算
- kotlin - 操作员调用对应于点限定调用“List.min().compareTo(500)”,这在可空接收器“List.min()”上是不允许的