mysql 端口冲突_mySQL和XAMPP的端口冲突

我已经使用XAMPP / Apache一段时间了,最​​近决定安装MySQL。然而,它们似乎是相互矛盾的。 MySQL似乎更喜欢它,它运行正常,但XAMPP / Apache在尝试启动Apache时给我这个错误消息:

03:07:32 AM [Apache] Attempting to start Apache app...

03:07:33 AM [Apache] Status change detected: running

03:07:33 AM [Apache] Status change detected: stopped

03:07:33 AM [Apache] Error: Apache shutdown unexpectedly.

03:07:33 AM [Apache] This may be due to a blocked port, missing dependencies,

03:07:33 AM [Apache] improper privileges, a crash, or a shutdown by another method.

03:07:33 AM [Apache] Press the Logs button to view error logs and check

03:07:33 AM [Apache] the Windows Event Viewer for more clues

03:07:33 AM [Apache] If you need more help, copy and post this

03:07:33 AM [Apache] entire log window on the forums

我尝试更改文档:xampp / apache / conf中的httpd.conf

改变'倾听80'对于各种各样的事情,并在重新启动应用程序后,我发生了相同的错误消息。

非常感谢对此事的任何帮助。我不想仅仅为了使用XAMPP而删除mySQL,但如果它们无法同时运行,那么它将会被删除。

提前致谢。

编辑:

我相信它与MySQL相冲突的原因是:

03:26:51 AM [mysql] Problem detected!

03:26:51 AM [mysql] Port 3306 in use by ""C:\Program Files\MySQL\MySQL Server 5.6\bin\mysqld.exe" --defaults-file="C:\ProgramData\MySQL\MySQL Server 5.6\my.ini" MySQL56"!

03:26:51 AM [mysql] MySQL WILL NOT start without the configured ports free!

03:26:51 AM [mysql] You need to uninstall/disable/reconfigure the blocking application

03:26:51 AM [mysql] or reconfigure MySQL and the Control Panel to listen on a different port

我在使用XAMPP / Apache暂时禁用mySQL时遇到了一些困难。

有没有办法改变端口,以便它们可以共存?

编辑2:

我在以下情况下遇到以下错误消息:

09:13:22 AM [main] Initializing Modules

09:13:22 AM [Apache] Problem detected!

09:13:22 AM [Apache] Port 80 in use by "Unable to open process" with PID 4084!

09:13:22 AM [Apache] Apache WILL NOT start without the configured ports free!

09:13:22 AM [Apache] You need to uninstall/disable/reconfigure the blocking application

09:13:22 AM [Apache] or reconfigure Apache and the Control Panel to listen on a different port

09:13:22 AM [Apache] Problem detected!

09:13:22 AM [Apache] Port 443 in use by "Unable to open process" with PID 4084!

09:13:22 AM [Apache] Apache WILL NOT start without the configured ports free!

09:13:22 AM [Apache] You need to uninstall/disable/reconfigure the blocking application

09:13:22 AM [Apache] or reconfigure Apache and the Control Panel to listen on a different port

根据这些说明,新端口是否应该相同?我假设是因为他们都是80岁。

4. Search the string "Listen" in the file.

5. Replace port number 80 to any other unused port number.

6. Search for "ServerName" in the file.

7. Replace port number 80 to any other unused port number in the ServerName.

编辑3:

由于我不知道的原因,从上面的silentntlyrun.blogspot链接重新安装和端口更改后,XAMPP / MySQL没有问题。

然而,XAMPP / Apache仍然存在问题:

09:32:14 AM [Apache] Error: Apache shutdown unexpectedly.

09:32:14 AM [Apache] This may be due to a blocked port, missing dependencies,

09:32:14 AM [Apache] improper privileges, a crash, or a shutdown by another method.

09:32:14 AM [Apache] Press the Logs button to view error logs and check

09:32:14 AM [Apache] the Windows Event Viewer for more clues

09:32:14 AM [Apache] If you need more help, copy and post this

09:32:14 AM [Apache] entire log window on the forums

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值