[mysql]如何在mac系统中修改mysql端口

网友投稿 1787 2022-10-07

[mysql]如何在mac系统中修改mysql端口

[mysql]如何在mac系统中修改mysql端口

mac中修改端口和linux中不同,参考: ​​mysql server, 然后按照下面的建议修改:

I installed docker and was having problems with my company wanting to use port 3306 (which is what I was using privately).

Similar problem to you. So this is what I did to fix it.

​​sudo vi /Library/LaunchDaemons/com.oracle.oss.mysql.mysqld.plist​​

Then you get a long list of script tags and

Insert ​​--port=3307​​ into the array. Make sure you put it under the other strings and within the array.

I changed my port to 3307 instead of 3306 and now docker is working.

重新启动server即可

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:微信小程序开发入门使用详解
下一篇:maven多moudle项目在idea里面显示多个root问题及解决
相关文章

 发表评论

暂时没有评论,来抢沙发吧~