完美解决XAMPP无法启动mysql

MySQL Service detected with wrong path
启动XAMPP问题如下:

MySQL Service detected with wrong path
11:45:40  [mysql] 	Change XAMPP MySQL and Control Panel settings or
11:45:40  [mysql] 	Uninstall/disable the other service manually first
11:45:40  [mysql] 	Found Path: D:\java\mysql-8.0.23-winx64\mysql-8.0.23-winx64\bin\mysqld.exe
11:45:40  [mysql] 	Expected Path: c:\xampp\mysql\bin\mysqld.exe --defaults-file=c:\xampp\mysql\bin\my.ini mysql
11:45:40  [mysql] 	Problem detected!
11:45:40  [mysql] 	Port 3306 in use by "Unable to open process"!
11:45:40  [mysql] 	MySQL WILL NOT start without the configured ports free!
11:45:40  [mysql] 	You need to uninstall/disable/reconfigure the blocking application
11:45:40  [mysql] 	or reconfigure MySQL and the Control Panel to listen on a different port

解读:

目前已找到的mysqld的文件目录为:D:\java\mysql-8.0.23-winx64\mysql-8.0.23-winx64\bin\mysqld.exe
但是XAMPP希望是:c:\xampp\mysql\bin\mysqld.exe

解决方法

1. win+r 输入regedit 回车
如图:
在这里插入图片描述
2. 注册表
如图:
在这里插入图片描述
3. 找到mysql注册位置

可直接在上栏输入,也可一步一步找。

计算机\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MySQL

如图:在这里插入图片描述

4. 修改ImagePath的数值数据

点击IMagePath修改数据
这是原数据,保存的是电脑自带mysql的位置
在这里插入图片描述
将数值数据修改成XAMPP期望的地址,(直接从上面的报错语句中可以找到)
在这里插入图片描述

5.启动XAMPP
在这里插入图片描述
启动成功!!!!!!

评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值