my_print_defaults displays the options from option groups of option files. It is useful to see which options a particular tool will use.

Output is one option per line, displayed in the form in which they would be specified on the command line.


my_print_defaults [OPTIONS] [groups]


Option Description
-c, --config-file=name Deprecated, please use --defaults-file instead. Name of config file to read; if no extension is given, default extension (e.g., .ini or .cnf) will be added.
-# ,--debug[=#] In debug versions, write a debugging log. A typical debug_options string is d:t:o,file_name. The default is d:t:o,/tmp/my_print_defaults.trace.
-c, --defaults-file=name Like --config-file, except: if first option, then read this file only, do not read global or per-user config files; should be the first option.
-e, --defaults-extra-file=name Read this file after the global config file and before the config file in the users home directory; should be the first option.
-g, --defaults-group-suffix=name In addition to the given groups, read also groups with this suffix.
-e, --extra-file=name Deprecated. Synonym for --defaults-extra-file.
--mysqld Read the same set of groups that the mysqld binary does.
-n, --no-defaults Return an empty string (useful for scripts).
?, --help Display this help message and exit.
-v, --verbose Increase the output level.
-V, --version Output version information and exit.


my_print_defaults --defaults-file=example.cnf client client-server mysql

mysqlcheck reads from the [mysqlcheck] and [client] sections, so the following would display the mysqlcheck options.

my_print_defaults mysqlcheck client
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.

© 2019 MariaDB
Licensed under the Creative Commons Attribution 3.0 Unported License and the GNU Free Documentation License.