Change port # for mysql on mac

后端 未结 6 807
甜味超标
甜味超标 2021-02-09 07:34

I just installed mysql on a mac running 10.6. The mysql version is 5.1.56. I need to have mysql run on port 3307. This article says we can change the port by modifying this file

6条回答
  •  你的背包
    2021-02-09 08:11

    Looks like the new installers are adding the port as 3307

    To change that follow below steps

    sudo vi /Library/LaunchDaemons/com.oracle.oss.mysql.mysqld.plist
    change 3307 from this line --port=3307 to 3306
    

提交回复
热议问题