XAMPP Mysql启动失败问题
显示如下:
13:51:29 [mysql] Problem detected!
13:51:29 [mysql] Port 3306 in use by ""E:COMPUTERMysqlbinmysqld" --defaults-file="E:COMPUTERMysqlmy.ini" MySQL51"!
13:51:29 [mysql] MySQL WILL NOT start without the configured ports free!
13:51:29 [mysql] You need to uninstall/disable/reconfigure the blocking application
13:51:29 [mysql] or reconfigure MySQL and the Control Panel to listen on a different port
13:51:29 [mysql] Attempting to start MySQL app...
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 在xampp根目录下找到两个文件properties.ini和xampp-control.ini
properties.ini 中找到以下代码
[MySQL]
mysql_port=3306
将3306改为任意值(例如666)
保存!!
xampp-control.ini 中找到以下代码
[ServicePorts]
Apache=80
ApacheSSL=443
MySQL=3306
将3306改为与上面相同的数字(此时为666)
保存!!
- 打开xampp.control.exe 按照图片操作
- 重新启动mysql若仍失败且出现以下代码
修改方法:
①在命令提示符窗口输入regedit指令,打开注册表编辑器。
②找到HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MySQL,将ImagePath的数据修改成xampp中mysq的位置,(按照你的安装路径修改)这里修改为E:\xampp\mysql\bin\mysqld MySQL。再次点击MySQL的 “Start”按钮,mysql服务正常启动。
- 在地址栏输入127.0.0.1
The end
转载请注明:XAMPP中文组官网 » XAMPP Mysql启动失败解决方法