Change port # for mysql on mac

后端 未结 6 804
甜味超标
甜味超标 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:19

    By default, the install doesn't create a my.cnf file on Snow Leopard. You can create one yourself under /etc or you can copy one from /usr/local/mysql/support-files/

    Then run : sudo cp my-huge.cnf /etc/my.cnf

    Check out the explanation here

提交回复
热议问题