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程序读取[mysqlcheck]
and [client]
option groups. [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支持以下选项。
--help
, -?
Display a help message and exit.显示帮助消息并退出。
--config-file=
, file_name
--defaults-file=
, file_name
-c
file_name
Read only the given option file.只读给定的选项文件。
--debug=
, debug_options
-#
debug_options
Write a debugging log. A typical 编写调试日志。典型的debug_options
string is d:t:o,
. The default is file_name
d:t:o,/tmp/my_print_defaults.trace
.debug_options
字符串是d:t:o,file_name
。默认值为d:t:o,/tmp/my_print_defaults.trace
。
--defaults-extra-file=
, file_name
--extra-file=
, file_name
-e
file_name
Read this option file after the global option file but (on Unix) before the user option file.在全局选项文件之后读取此选项文件,但(在Unix上)在用户选项文件之前读取。
For additional information about this and other option-file options, see Section 4.2.2.3, “Command-Line Options that Affect Option-File Handling”.有关此选项和其他选项文件选项的更多信息,请参阅第4.2.2.3节,“影响选项文件处理的命令行选项”。
--defaults-group-suffix=
, suffix
-g
suffix
In addition to the groups named on the command line, read groups that have the given suffix.除了命令行上指定的组外,还要读取具有给定后缀的组。
For additional information about this and other option-file options, see Section 4.2.2.3, “Command-Line Options that Affect Option-File Handling”.有关此选项和其他选项文件选项的更多信息,请参阅第4.2.2.3节,“影响选项文件处理的命令行选项”。
--login-path=
, name
-l
name
Read options from the named login path in the 从.mylogin.cnf
login path file. .mylogin.cnf
登录路径文件中的指定登录路径读取选项。A “login path” is an option group containing options that specify which MySQL server to connect to and which account to authenticate as. “登录路径”是一个选项组,其中包含指定要连接到哪个MySQL服务器以及要作为哪个帐户进行身份验证的选项。To create or modify a login path file, use the mysql_config_editor utility. 要创建或修改登录路径文件,请使用mysql_config_editor实用程序。See Section 4.6.7, “mysql_config_editor — MySQL Configuration Utility”.请参阅第4.6.7节,“mysql_config编辑器--mysql配置实用程序”。
For additional information about this and other option-file options, see Section 4.2.2.3, “Command-Line Options that Affect Option-File Handling”.有关此选项和其他选项文件选项的更多信息,请参阅第4.2.2.3节,“影响选项文件处理的命令行选项”。
--no-defaults
, -n
Return an empty string.返回一个空字符串。
For additional information about this and other option-file options, see Section 4.2.2.3, “Command-Line Options that Affect Option-File Handling”.有关此选项和其他选项文件选项的更多信息,请参阅第4.2.2.3节,“影响选项文件处理的命令行选项”。
--show
, -s
my_print_defaults masks passwords by default. Use this option to display passwords as cleartext.my_print_defaults
默认情况下会屏蔽密码。使用此选项以明文形式显示密码。
--verbose
, -v
Verbose mode. Print more information about what the program does.详细模式。打印有关程序功能的更多信息。
--version
, -V
Display version information and exit.显示版本信息并退出。