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

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

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

13条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-02 04:16

    For MacOS (High Sierra), MySQL that has been installed with home brew.

    Increasing the global variables from mysql environment was not successful. So in that case creating of ~/.my.cnf is the safest option. Adding variables with [mysqld] will include the changes (Note: if you change with [mysql] , the change might not work).

    <~/.my.cnf> [mysqld] connect_timeout = 43200 max_allowed_packet = 2048M net_buffer_length = 512M

    Restart the mysql server. and check the variables. y

    sql> SELECT @@max_allowed_packet; +----------------------+ | @@max_allowed_packet | +----------------------+ | 1073741824 | +----------------------+

    1 row in set (0.00 sec)

提交回复
热议问题