OS Manuals

/usr/bin/my_print_defaults

The MariaDB open source relational database

From mariadb-12.0 12.0.2-r5 (enterprise-packages), captured 2026-11-08 by running my_print_defaults --help (exit 0). permalink

/usr/bin/my_print_defaults from 12.0.2-MariaDB, client 1.7 for Linux (x86_64)
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL license

Displays the options from option groups of option files, which is useful to see which options a particular tool will use
Usage: /usr/bin/my_print_defaults [OPTIONS] [groups]
  -#, --debug[=#]     This is a non-debug version. Catch this and exit
  --mysqld            Read the same set of groups that the mariadbd (previously
                      known as mysqld) binary does.
  --mariadbd          Read the same set of groups that the mariadbd 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.

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)
--------------------------------- ----------------------------------------
mysqld                            FALSE
mariadbd                          FALSE

Example usage:
/usr/bin/my_print_defaults --defaults-file=example.cnf client client-server mysql
Options (7)
OptionDescriptionSource
-#, --debug #This is a non-debug version.help
--mysqldRead the same set of groups that the mariadbd (previously known as mysqld) binary does.help
--mariadbdRead the same set of groups that the mariadbd binary does.help
-n, --no-defaultsReturn an empty string (useful for scripts).help
-?, --helpDisplay this help message and exit.help
-v, --verboseIncrease the output levelhelp
-V, --versionOutput version information and exit.help

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.