Potrzebne informacje można znaleźć, uruchamiając
mysql --help
lub
mysqld --help --verbose
Wypróbowałem to polecenie na moim komputerze:
mysql --help | grep "Default options" -A 1
I wydrukowano:
Default options are read from the following files in the given order:
/etc/my.cnf /usr/local/etc/my.cnf ~/.my.cnf
Sprawdź, czy to działa dla Ciebie.