my_print_defaults --version (return code: 0)
my_print_defaults Ver 1.6 for Linux at x86_64
my_print_defaults --help (return code: 0)
my_print_defaults Ver 1.6 for Linux at x86_64
Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Prints all arguments that is give to some program using the default files
Usage: my_print_defaults [OPTIONS] groups
-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[=#] This is a non-debug version. Catch this and exit
-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.
-n, --no-defaults Ignore reading of default option file(s), except for
login file.
-l, --login-path=name
Path to be read from under the login file.
-s, --show Show passwords in plain text.
-?, --help Display this help message and exit.
-v, --verbose Increase the output level
-V, --version Output version information and exit.
Default options are read from the following files in the given order:
/etc/my.cnf /etc/mysql/my.cnf ~/.my.cnf
Variables (--variable-name=value)
and boolean options {FALSE|TRUE} Value (after reading options)
--------------------------------- ----------------------------------------
config-file my
defaults-file my
defaults-extra-file (No default value)
defaults-group-suffix (No default value)
extra-file (No default value)
login-path (No default value)
show FALSE
Example usage:
my_print_defaults --defaults-file=example.cnf client mysql