问题描述:
xampp启动mysql服务时,报红提示启动失败,3306端口冲突。
错误提示:
Problem detected!
18:01:21 [mysql] Port 3306 in use by ""C:\Program Files (x86)\MySQL\MySQL Server 5.5\bin\mysqld" --defaults-file="C:\Program Files (x86)\MySQL\MySQL Server 5.5\my.ini" MySQL"!
18:01:21 [mysql] MySQL WILL NOT start without the configured ports free!
18:01:21 [mysql] You need to uninstall/disable/reconfigure the blocking application
18:01:21 [mysql] or reconfigure MySQL and the Control Panel to listen on a different port
18:01:21 [mysql] Attempting to start MySQL service...
原因分析:
以前下载过mysql的软件或者被Windows自带的服务占用了3306端口,所以造成了冲突。
解决方案:
有两种解决方案,1、把以前的mysql软件删除干净,包括注册表里的信息也清除,再重新启动。(本博客使用的是方法2,方法1你们可以百度一下,里面很多教程)2、把xampp里mysql的端口改成其他的。
方法2:博主:AT的小哥哥
- 在此我补充下方法2原作者的细节处。
最后一步,修改注册表编辑器里的需修改内容应该为“E:\xampp\mysql\bin\mysqld” MySQL。(路径在双引号内,后空格加MYsql)
原作者:
补充后: