如何查询binlog

mysqlbinlog  binlog.000001

输出到文件

mysqlbinlog --start-datetime='2022-07-20 00:00:00' --stop-datetime='2022-07-30 00:00:00' binlog.000001 > mysqllog1.log