Cwww3's Blog

Record what you think

0%

mysqlbinlog

查看是否开启binlog

1
show variables like 'log_bin';

查看binlog

1
show binary logs

分析binlog

1
2
3
4
5
6
mysqlbinlog 
-base64-output=decode-rows -- 解码
--no-defaults --database=db
--start-datetime='2019-04-11 00:00:00'
--stop-datetime='2019-04-11 15:00:00' mysql-bin.000007
-- 指定位置 --start-position --stop-position
Donate comment here.