mysqlbinlog Command Examples

Utility for processing MySQL binary log files. More information: https://dev.mysql.com/doc/refman/8.0/en/mysqlbinlog.html.

mysqlbinlog {{path/to/binlog}}

mysqlbinlog --database {{database_name}} {{path/to/binlog}}

mysqlbinlog --start-datetime='{{2022-01-01 01:00:00}}' --stop-datetime='{{2022-02-01 01:00:00}}' {{path/to/binlog}}

mysqlbinlog --start-position={{100}} --stop-position={{200}} {{path/to/binlog}}

mysqlbinlog --host={{hostname}} {{path/to/binlog}}