For homebrew mysql installs, where's my.cnf?

前端 未结 13 1378
夕颜
夕颜 2020-12-02 03:16

For homebrew mysql installs, where\'s my.cnf? Does it install one?

13条回答
  •  感动是毒
    2020-12-02 04:14

    In case of Homebrew, mysql would also look for my.cnf in it's Cellar directory, for example:

    /usr/local/Cellar/mysql/5.7.21/my.cnf
    

    For the case one prefers to keep the config close to the binaries - create my.cnf here if it's missing.

    Restart mysql after change:

    brew services restart mysql
    

提交回复
热议问题