What is the default location for the MySQL configuration file on a redhat linux box?
On RH systems, MySQL configuration file is located under /etc/my. cnf by default.
Most MySQL programs can read startup options from option files (sometimes called configuration files). Option files provide a convenient way to specify commonly used options so that they need not be entered on the command line each time you run a program.
Just found it, it is /etc/my.cnf
The information you want can be found by running
mysql --help
or
mysqld --help --verbose
I tried this :
mysql --help | grep Default -A 1
And the output:
(Defaults to on; use --skip-auto-rehash to disable.) -A, --no-auto-rehash -- (Defaults to on; use --skip-line-numbers to disable.) -L, --skip-line-numbers -- (Defaults to on; use --skip-column-names to disable.) -N, --skip-column-names -- (Defaults to on; use --skip-reconnect to disable.) -s, --silent Be more silent. Print results with a tab as separator, -- --default-auth=name Default authentication client-side plugin to use. --binary-mode By default, ASCII '\0' is disallowed and '\r\n' is -- Default options are read from the following files in the given order: /etc/my.cnf /etc/mysql/my.cnf /usr/etc/my.cnf ~/.my.cnf
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With