xampp中MySQL启动失败解决方法

启动失败 查看log日志

2022-03-08 15:00:47 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2022-03-08 15:00:47 0 [Note] InnoDB: Uses event mutexes
2022-03-08 15:00:47 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2022-03-08 15:00:47 0 [Note] InnoDB: Number of pools: 1
2022-03-08 15:00:47 0 [Note] InnoDB: Using SSE2 crc32 instructions
2022-03-08 15:00:47 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2022-03-08 15:00:47 0 [Note] InnoDB: Completed initialization of buffer pool
2022-03-08 15:00:48 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2022-03-08 15:00:48 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2022-03-08 15:00:48 0 [Note] InnoDB: Setting file 'D:\Dailysoftware\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2022-03-08 15:00:48 0 [Note] InnoDB: File 'D:\Dailysoftware\xampp\mysql\data\ibtmp1' size is now 12 MB.
2022-03-08 15:00:48 0 [Note] InnoDB: Waiting for purge to start
2022-03-08 15:00:48 0 [Note] InnoDB: 10.4.18 started; log sequence number 33051527; transaction id 37832
2022-03-08 15:00:48 0 [Note] InnoDB: Loading buffer pool(s) from D:\Dailysoftware\xampp\mysql\data\ib_buffer_pool
2022-03-08 15:00:48 0 [Note] Plugin 'FEEDBACK' is disabled.
2022-03-08 15:00:48 0 [Note] Server socket created on IP: '::'.

解决方法

参考https://stackoverflow.com/questions/56847804/xampp-mysql-service-crash-after-reboot

1、点击xampp面板上的Shell按钮进入命令框,输入命令:

mysqld –-console –-skip-grant-tables –-skip-external-locking

2、第一个cmd命令行窗口不关闭,重新在面板上点开一个Shell,再次输入指令:

mysqlcheck -r --databases mysql --use-frm

等命令窗口不再变化,再关闭命令窗口,重新启动xampp,重启mysql,问题解决。

posted @   Halumyway  阅读(1515)  评论(1编辑  收藏  举报
相关博文:
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· AI技术革命,工作效率10个最佳AI工具
点击右上角即可分享
微信分享提示