4.7.2 my_print_defaults — Display Options from Option Files显示选项文件中的选项

my_print_defaults displays the options that are present in option groups of option files. The output indicates what options are used by programs that read the specified option groups. my_print_defaults显示选项文件选项组中存在的选项。输出指示读取指定选项组的程序使用哪些选项。For example, the mysqlcheck program reads the [mysqlcheck] and [client] option groups. 例如,mysqlcheck程序读取[mysqlcheck][client]选项组。To see what options are present in those groups in the standard option files, invoke my_print_defaults like this:要查看标准选项文件中这些组中存在哪些选项,请按如下方式调用my_print_defaults

shell> my_print_defaults mysqlcheck client
--user=myusername
--password=password
--host=localhost

The output consists of options, one per line, in the form that they would be specified on the command line.输出由选项组成,每行一个,其形式将在命令行上指定。

my_print_defaults supports the following options.my_print_defaults支持以下选项。