您的位置:首页 > 数据库 > MySQL

mac系统下mysql开机启动总是3307

2015-10-09 09:29 513 查看
修改了mysql的my.cnf可还是不行,启动后就是3307,必须关掉再启动。

觉得可能是mac系统在哪里写死了开机启动项。
http://queforum.com/mysql/1012987-mysql-install-mysql-osx-runs-port-3307-a.html
最后看到上面的文章。

In the System Preferences under MySQL, click the 'Automaticall Start MySQl Server on Startup' box.
This forces it to generate a launchDaemon in /Library/launchDaemons.
I then edited that file and changed the port to 3306 and restarted.

我的是一个叫/Library/launchDaemons/com.oracle.oss.mysql.mysqld.plist文件,修改里面的3307为3306即可。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: