将 mamp 端口设置为 80 和 3306 [英] setting mamp ports to 80 and 3306

查看:71
本文介绍了将 mamp 端口设置为 80 和 3306的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我同时使用默认 MAMP 端口(分别为 8888 和 8889)运行 apache 和 mySQL,一切似乎都正常,但是当我将端口切换到 Apache 的 80 和 mySQL 的 3306 时,mySQL 服务器无法重新启动.

I have both apache and mySQL running with the default MAMP ports (8888 and 8889 respectively) and everything seems to work, but when I switch the ports to 80 for Apache and 3306 for mySQL, the mySQL server is unable to restart.

我正在尝试将 MAMP 设置为在这些端口上运行,因为显然这最适合在 Dreamweaver 中进行开发...因此,鉴于我想为 Dreamweaver 提供理想的开发环境,有没有办法绕过 3306港口?或者,潜在的问题是什么?

I am trying to setup MAMP to run on these ports because apparently this is optimal for developing in dreamweaver... Thus, given that I would like to have the ideal dev environment for dreamweaver, is there a way around using the 3306 port? Or, what could the potential problems be?

谢谢

推荐答案

以防万一有人遇到同样的问题,我是这样解决的:

Just in case anyone is having the same problem, here is how I fixed it:

我打开了活动监视器程序并选择了所有进程"
接下来我在搜索文本字段中搜索mysqld".很有可能你有一个 mysql 正在运行的实例,你必须找到它并点击退出进程.
重新启动 MAMP,你应该一切都准备好了.

I opened the Activity Monitor program and selected "All Processes"
Next I search for "mysqld" in the search text field. There is a good chance that you have an instance of mysql running and you have to find it and hit quit process.
Restart MAMP and you should be all set.

这篇关于将 mamp 端口设置为 80 和 3306的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆