文档首页
MySQL 8.4 参考手册
8.4 中文镜像

MySQL 8.4 参考手册 · 中文镜像

正文为中文,英文原文默认隐藏。点击任意中文段落即可展开 / 收起对应英文原文。

打开官方英文原文 ↗

译文由机器翻译生成,仅供理解参考;有疑问请以官方英文原文为准。

MySQL 8.4 参考手册 / 25 MySQL NDB 集群 8.4 / 25.5 NDB 集群程序 / 25.5.17 ndb_print_backup_file — 打印 NDB 备份文件内容
中文点击中文段落可显示 / 隐藏英文原文本页译文覆盖 68%

25.5.17 ndb_print_backup_file — 打印 NDB 备份文件内容25.5.17 ndb_print_backup_file — Print NDB Backup File Contents

ndb_print_backup_file 从集群备份文件中获取诊断信息。ndb_print_backup_file obtains diagnostic information from a cluster backup file.

用法Usage

ndb_print_backup_file [-P password] file_name

file_name 是集群备份文件的名称。它可以是集群备份目录中找到的任何文件(.Data、.ctl 或 .log 文件)。这些文件位于数据节点的备份目录下的子目录 BACKUP-# 中,其中 # 是备份的序列号。有关集群备份文件及其内容的更多信息,请参阅 第 25.6.8.1 节,“NDB 集群备份概念”。file_name is the name of a cluster backup file. This can be any of the files (.Data, .ctl, or .log file) found in a cluster backup directory. These files are found in the data node's backup directory under the subdirectory BACKUP-#, where # is the sequence number for the backup. For more information about cluster backup files and their contents, see Section 25.6.8.1, “NDB Cluster Backup Concepts”.

像 ndb_print_schema_file 和 ndb_print_sys_file(不同于大多数其他 NDB 工具,这些工具通常用于在管理服务器主机上运行或连接到管理服务器)ndb_print_backup_file 必须在集群数据节点上运行,因为它直接访问数据节点文件系统。由于它不使用管理服务器,因此当管理服务器未运行时,甚至在集群完全关闭时也可以使用该工具。Like ndb_print_schema_file and ndb_print_sys_file (and unlike most of the other NDB utilities that are intended to be run on a management server host or to connect to a management server) ndb_print_backup_file must be run on a cluster data node, since it accesses the data node file system directly. Because it does not make use of the management server, this utility can be used when the management server is not running, and even when the cluster has been completely shut down.

该程序也可以用于读取撤消日志文件。This program can also be used to read undo log files.

选项Options

ndb_print_backup_file 支持以下列表中描述的选项。ndb_print_backup_file supports the options described in the following list.

  • --backup-key, -K

    命令行格式Command-Line Format --backup-key=key

    指定解密加密备份所需的密钥。Specify the key needed to decrypt an encrypted backup.

  • --backup-key-from-stdin

    命令行格式Command-Line Format --backup-key-from-stdin

    允许从标准输入输入解密密钥,类似于在调用 mysql 时未提供密码而输入 --password 后输入密码的方式。Allow input of the decryption key from standard input, similar to entering a password after invoking mysql --password with no password supplied.

  • --backup-password

    命令行格式Command-Line Format --backup-password=password
    类型Type 字符串String
    默认值Default Value [none][none]

    指定解密加密备份所需的密码。Specify the password needed to decrypt an encrypted backup.

  • --backup-password-from-stdin

    命令行格式Command-Line Format --backup-password-from-stdin

    允许从标准输入输入密码,类似于在调用 mysql --password 时未提供密码后输入密码。Allow input of the password from standard input, similar to entering a password after invoking mysql --password with no password supplied.

  • --control-directory-number

    命令行格式Command-Line Format --control-directory-number=#
    类型Type 整数Integer
    默认值Default Value 0

    控制文件目录编号。与 --print-restored-rows 一起使用。Control file directory number. Used together with --print-restored-rows.

  • --defaults-extra-file

    命令行格式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.

  • --defaults-file

    命令行格式Command-Line Format --defaults-file=path
    类型Type 字符串String
    默认值Default Value [none][none]

    仅从指定文件读取默认选项。Read default options from given file only.

  • --defaults-group-suffix

    命令行格式Command-Line Format --defaults-group-suffix=string
    类型Type 字符串String
    默认值Default Value [none][none]

    也读取组合了 concat(group, suffix) 的组。Also read groups with concat(group, suffix).

  • --fragment-id

    命令行格式Command-Line Format --fragment-id=#
    类型Type 整数Integer
    默认值Default Value 0

    片段 ID。与 --print-restored-rows 一起使用。Fragment ID. Used together with --print-restored-rows.

  • --help

    命令行格式Command-Line Format

    --help--help

    --usage

    打印程序使用信息。Print program usage information.

  • --login-path

    命令行格式Command-Line Format --login-path=path
    类型Type 字符串String
    默认值Default Value [none][none]

    从登录文件读取给定路径。Read given path from login file.

  • --no-login-paths

    命令行格式Command-Line Format --no-login-paths

    跳过从登录路径文件读取选项。Skips reading options from the login path file.

  • --no-defaults

    命令行格式Command-Line Format --no-defaults--no-defaults

    除了登录文件之外,不从任何配置文件读取默认选项。Do not read default options from any option file other than login file.

  • --no-print-rows

    命令行格式Command-Line Format --no-print-rows

    输出中不包含行。Do not include rows in output.

  • --print-defaults

    命令行格式Command-Line Format --print-defaults

    打印程序参数列表然后退出。Print program argument list and exit.

  • --print-header-words

    命令行格式Command-Line Format --print-header-words

    在输出中包含头部词。Include header words in output.

  • --print-restored-rows

    命令行格式Command-Line Format --print-restored-rows

    在输出中包括已恢复的行,使用文件 LCP/c/TtFf.ctl,其值设置如下:Include restored rows in output, using the file LCP/c/TtFf.ctl, for which the values are set as follows:

  • --print-rows

    命令行格式Command-Line Format --print-rows

    打印行。此选项默认启用;要禁用它,请使用 --no-print-rows。Print rows. This option is enabled by default; to disable it, use --no-print-rows.

  • --print-rows-per-page

    命令行格式Command-Line Format --print-rows-per-page

    每页打印行。Print rows per page.

  • --rowid-file

    命令行格式Command-Line Format --rowid-file=path
    类型Type 文件名File name
    默认值Default Value [none][none]

    用于检查行 ID 的文件。File to check for row ID.

  • --show-ignored-rows

    命令行格式Command-Line Format --show-ignored-rows

    显示被忽略的行。Show ignored rows.

  • --table-id

    命令行格式Command-Line Format --table-id=#
    类型Type 整数Integer
    默认值Default Value [none][none]

    表 ID。与 --print-restored-rows 一起使用。Table ID. Used together with --print-restored-rows.

  • --usage

    命令行格式Command-Line Format --usage

    显示帮助文本并退出;与 --help 相同。Display help text and exit; same as --help.

  • --verbose

    命令行格式Command-Line Format --verbose[=#]
    类型Type 整数Integer
    默认值Default Value 0

    输出的详细程度。值越大表示详细程度越高。Verbosity level of output. A greater value indicates increased verbosity.

  • --version

    命令行格式Command-Line Format --version

    显示版本信息并退出。Display version information and exit.