myisamlog processes the contents of a myisamlog处理MyISAM
log file. MyISAM
日志文件的内容。To create such a file, start the server with a 要创建这样的文件,请使用--log-isam=
option.log_file
--log-isam=log_file
选项启动服务器。
Invoke myisamlog like this:调用myisamlog如下:
myisamlog [options
] [file_name
[tbl_name
] ...]
The default operation is update (默认操作是update(-u
). If a recovery is done (-r
), all writes and possibly updates and deletes are done and errors are only counted. -u
)。如果恢复完成(-r
),则所有写入以及可能的更新和删除都将完成,并且只计算错误。The default log file name is 如果没有给出myisam.log
if no log_file
argument is given. log_file
参数,则默认日志文件名为myisamlog。If tables are named on the command line, only those tables are updated.如果在命令行上命名表,则仅更新这些表。
myisamlog supports the following options:myisamlog支持以下选项:
Display a help message and exit.显示帮助消息并退出。
Execute only 仅执行N
commands.N
个命令。
Specify the maximum number of open files.指定打开文件的最大数量。
Specify the file path with a trailing slash.用尾随斜线指定文件路径。
Display extra information before exiting.退出前显示额外信息。
Specify the starting offset.指定起始偏移量。
Remove 从路径中删除N
components from path.N
个组件。
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.显示版本信息。