XAMPP无法启动MySql解决办法

本文介绍了一种常见的MySQL服务无法启动的问题及解决方法。当遇到MySQL意外关闭导致服务无法启动时,可以通过删除xampp/mysql/data/ibdata1文件来解决。文章还提供了针对Windows系统的具体步骤。
18:31:29  [mysql] Error: MySQL shutdown unexpectedly.
18:31:29  [mysql] This may be due to a blocked port, missing dependencies, 
18:31:29  [mysql] improper privileges, a crash, or a shutdown by another method.
18:31:29  [mysql] Press the Logs button to view error logs and check
18:31:29  [mysql] the Windows Event Viewer for more clues
18:31:29  [mysql] If you need more help, copy and post this

18:31:29  [mysql] entire log window on the forums


只要删除 xampp/mysql/datda/ibdata1文件,就能正常启动。每次启动都会生成ibdata1文件,ibdata1文件存在就会启动不了,所以每次启动前都要去删除这个文件

如果是windows系统
先确定你的apache是关着的,然后不要选中Svc
到安装目录(如果是免安装的就找解压的文件夹)里在xampp-》apache文件夹里有apache_uninstallservice.bat文件,双击运行。
重启xampp-control.exe就行了


评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值