danfengcao / binlog2sql

Parse MySQL binlog to SQL you want
GNU General Public License v3.0
3.33k stars 1.04k forks source link

binlog2sql恢复 #98

Open xxx1204 opened 2 years ago

xxx1204 commented 2 years ago

您好,请问binlog2sql恢复,能不能恢复一天前的binlog,我遇到只能打印最近几小时的binlog语句

michael-liumh commented 2 years ago

如果你执行 show master logs 能看到 1天前的 binlog,那就可以

michael-liumh commented 2 years ago

要不然就只能用 mysqlbinlog 解析本地 binlog 了 我改了一版,支持解析本地的,有兴趣的话,可以试试: https://github.com/michael-liumh/binlog2sql