1, get binlog file list
mysql> show binary logs;
2, view the file that is currently being written binlog
mysql>show master status;
3, see the contents of the specified binlog file
mysql>show binlog events [in 'log_name'] [FROM pos] [limit [offset,] row_count]
Use mysqlbinlog binlog View
1, the output file is specified binlog contents
mysqlbinlog binlog file
2, the output position designated location binlog log
mysqlbinlog --start-position = "to specify the starting position" --stop-position = "specifies the end position" binlog file
2, the extraction position specified location binlog log and output to the specified file
mysqlbinlog --start-position = "to specify the starting position" --stop-position = "specifies the end position" binlog file> output filename
or
mysqlbinlog --start-position = "to specify the starting position" --stop-position = "specifies the end position" binlog file --result-file = output filename
3、