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

MySQL 8.4 参考手册 · 中文镜像

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

打开官方英文原文 ↗

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

MySQL 8.4 参考手册 / 6 个 MySQL 程序 / 6.6 管理和实用程序 / 6.6.5 myisamlog — 显示 MyISAM 日志文件内容
中文点击中文段落可显示 / 隐藏英文原文本页译文覆盖 65%

6.6.5 myisamlog — 显示 MyISAM 日志文件内容6.6.5 myisamlog — Display MyISAM Log File Contents

myisamlog 处理 MyISAM 日志文件的内容。要创建这样的文件,请用 --log-isam=log_file 选项启动服务器。myisamlog processes the contents of a MyISAM log file. To create such a file, start the server with a --log-isam=log_file option.

像这样调用 myisamlog:Invoke myisamlog like this:

myisamlog [options] [file_name [tbl_name] ...]

默认操作是更新(-u)。如果执行恢复(-r),会执行所有写操作,并可能执行更新和删除操作,错误只会被计数。如果没有提供 log_file 参数,默认日志文件名为 myisam.log。如果在命令行中指定了表名,则只更新那些表。The default operation is update (-u). If a recovery is done (-r), all writes and possibly updates and deletes are done and errors are only counted. The default log file name is myisam.log if no log_file argument is given. If tables are named on the command line, only those tables are updated.

myisamlog 支持以下选项:myisamlog supports the following options:

  • -?, -I

    显示帮助信息并退出。Display a help message and exit.

  • -c N

    仅执行 N 条命令。Execute only N commands.

  • -f N

    指定最大打开文件数。Specify the maximum number of open files.

  • -F filepath/ -F filepath/

    指定带有尾部斜杠的文件路径。Specify the file path with a trailing slash.

  • -i

    退出前显示额外信息。Display extra information before exiting.

  • -o offset -o offset

    指定起始偏移量。Specify the starting offset.

  • -p N

    从路径中移除 N 个组件。Remove N components from path.

  • -r

    执行恢复操作。Perform a recovery operation.

  • -R record_pos_file record_pos

    指定记录位置文件和记录位置。Specify record position file and record position.

  • -u

    执行更新操作。Perform an update operation.

  • -v

    详细模式。打印有关程序执行内容的更多输出。此选项可以多次使用,以生成越来越多的输出。Verbose mode. Print more output about what the program does. This option can be given multiple times to produce more and more output.

  • -w write_file

    指定写入的文件。Specify the write file.

  • -V

    显示版本信息。Display version information.