myisamlog
database toolsLinux/Unix
The myisamlog command is one of the most frequently used commands in Linux/Unix-like operating systems. myisamlog Display contents of MyISAM log file
Quick Reference
Command Name:
myisamlog
Category:
database tools
Platform:
Linux/Unix
Basic Usage:
myisamlog [options] [arguments]
Common Use Cases
Syntax
myisamlog [options] [log_file [table_name] ...]
Options
Option | Description |
---|---|
-? , --help |
Display help and exit |
-c , --check |
Check the log file for errors |
-d , --description |
Display description of the log (default) |
-f , --force |
Force restart (with -r) even if the log file is corrupt |
-i , --info |
Display extra information before exiting |
-l , --log |
Logging. Use -l followed by options |
-n # , --number=# |
Display only this number of entries |
-o # , --offset=# |
Start reading log from offset # |
-p # , --print=# |
Print given positions (spaces between the #s) |
-r , --recover |
Recovery mode. Recovers to a binary file at a given start and end position |
-R # , --record=# |
Only display records for specified record position |
-u , --update |
Display only update operations |
-v , --verbose |
Verbose mode. Print more info. Use many times for more verbosity |
-V , --version |
Print version and exit |
-w , --write |
Display only write operations |
Examples
How to Use These Examples
The examples below show common ways to use the myisamlog
command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
# Basic Examples Basic
myisamlog /var/lib/mysql/myisam.log