myisamlog 处理 MyISAM 日志文件的内容。要创建这样的文件,请用 --log-isam= 选项启动服务器。myisamlog processes the contents of a
log_fileMyISAM log file. To create such a file, start
the server with a
--log-isam=
option.log_file
像这样调用 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:
显示帮助信息并退出。Display a help message and exit.
仅执行
N条命令。Execute onlyNcommands.指定最大打开文件数。Specify the maximum number of open files.
指定带有尾部斜杠的文件路径。Specify the file path with a trailing slash.
退出前显示额外信息。Display extra information before exiting.
指定起始偏移量。Specify the starting offset.
从路径中移除
N个组件。RemoveNcomponents from path.执行恢复操作。Perform a recovery operation.
指定记录位置文件和记录位置。Specify record position file and record position.
执行更新操作。Perform an update operation.
详细模式。打印有关程序执行内容的更多输出。此选项可以多次使用,以生成越来越多的输出。Verbose mode. Print more output about what the program does. This option can be given multiple times to produce more and more output.
指定写入的文件。Specify the write file.
显示版本信息。Display version information.