ndb_secretsfile_reader 根据密码从 NDB 加密密钥文件中获取加密密钥。ndb_secretsfile_reader gets the encryption
key from an NDB encryption secrets file,
given the password.
用法Usage
ndb_secretsfile_readeroptionsfile
options 必须包括 --filesystem-password 或 --filesystem-password-from-stdin 中的一个,并且必须提供加密密码,如下所示:The options must include one of
--filesystem-password
or
--filesystem-password-from-stdin,
and the encryption password must be supplied, as shown here:
> ndb_secretsfile_reader --filesystem-password=54kl14 ndb_5_fs/D1/NDBCNTR/S0.sysfile
ndb_secretsfile_reader: [Warning] Using a password on the command line interface can be insecure.
cac256e18b2ddf6b5ef82d99a72f18e864b78453cc7fa40bfaf0c40b91122d18
这些以及其他可以与 ndb_secretsfile_reader 一起使用的选项显示在下表中。表格后面附有更多说明。These and other options that can be used with ndb_secretsfile_reader are shown in the following table. Additional descriptions follow the table.
命令行格式Command-Line Format --defaults-extra-file=path--defaults-extra-file=path类型Type 字符串String 默认值Default Value [none][none]在读取全局文件之后读取给定文件。Read given file after global files are read.
命令行格式Command-Line Format --defaults-file=path类型Type 字符串String 默认值Default Value [none][none]仅从指定文件读取默认选项。Read default options from given file only.
命令行格式Command-Line Format --defaults-group-suffix=string类型Type 字符串String 默认值Default Value [none][none]也读取组合了 concat(group, suffix) 的组。Also read groups with concat(group, suffix).
命令行格式Command-Line Format --filesystem-password=password通过
stdin、tty或my.cnf文件,将文件系统加密和解密密码传递给 ndb_secretsfile_reader。Pass the filesystem encryption and decryption password to ndb_secretsfile_reader usingstdin,tty, or themy.cnffile.--filesystem-password-from-stdin命令行格式Command-Line Format --filesystem-password-from-stdin={TRUE|FALSE}将文件系统加密和解密密码通过
stdin(仅此)传递给 ndb_secretsfile_reader。Pass the filesystem encryption and decryption password to ndb_secretsfile_reader fromstdin(only).命令行格式Command-Line Format --help--help显示帮助文本并退出。Display help text and exit.
命令行格式Command-Line Format --login-path=path类型Type 字符串String 默认值Default Value [none][none]从登录文件读取给定路径。Read given path from login file.
命令行格式Command-Line Format --no-login-paths跳过从登录路径文件读取选项。Skips reading options from the login path file.
命令行格式Command-Line Format --no-defaults--no-defaults除了登录文件之外,不从任何配置文件读取默认选项。Do not read default options from any option file other than login file.
命令行格式Command-Line Format --print-defaults打印程序参数列表然后退出。Print program argument list and exit.
命令行格式Command-Line Format --usage显示帮助文本并退出;同 --help。Display help text and exit; same as --help.
命令行格式Command-Line Format --version显示版本信息并退出。Display version information and exit.