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

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

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

13条回答
  •  春和景丽
    2020-12-02 04:10

    On your shell type my_print_defaults --help

    At the bottom of the result, you should be able to see the file from which the server reads the configurations. It prints something like this:

    Default options are read from the following files in the given order:
    /etc/my.cnf /etc/mysql/my.cnf /usr/local/etc/my.cnf ~/.my.cnf
    

提交回复
热议问题