美文网首页
MySQL 查看 Binlog

MySQL 查看 Binlog

作者: liuliuzo | 来源:发表于2020-04-16 14:53 被阅读0次

登录到mysql查看binlog

1.    只查看第一个binlog文件的内容  

1.    show

binlog events; 

2.    查看指定binlog文件的内容  

1.    show

binlog events in 'mysql-bin.000002'; 

3.    查看当前正在写入的binlog文件  

1.    show

master status\G 

4.    获取binlog文件列表  

1.    show

binary logs; 

mysqlbinlog工具查看

目录:/var/lib/mysql下

mysqlbinlog

--start-datetime='2020-03-13 13:51:20' --stop-datetime='2020-03-13 13:51:30' -d

shared_fsvrmain mysql-bin.000013

mysqlbinlog–-base64-output=DECODE-ROWS -v -d库名 二进制文件

相关文章

网友评论

      本文标题:MySQL 查看 Binlog

      本文链接:https://www.haomeiwen.com/subject/xlirvhtx.html