For homebrew mysql installs, where's my.cnf? Does it install one?
相关问题
- sqlyog export query result as csv
- NOT DISTINCT query in mySQL
- MySQL: conduct a basic search
- Why sometimes there is one of more gap(s) in the v
- mySQL alter table on update, current timestamp
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:
You can find where the
my.cnf
file has been provided by the specific package, e.g.In addition to verify if that file is read, you can run:
which will show you filesystem activity in real-time related to that file.
in my system it was
as template and
as working.
I believe the answer is no. Installing one in ~/.my.cnf or /usr/local/etc seems to be the preferred solution.
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).
Restart the mysql server. and check the variables. y
1 row in set (0.00 sec)