查看当前数据库binlog格式
show global variables like "%binlog_format%";
查看当前最新的binlog
show master logs;
下载binlog
mysqlbinlog -umolan -p -hffffffffffffff.mysql.rds.aliyuncs.com --read-from-remote-server mysql-bin.000497 >a.sql
解析binlog
mysqlbinlog --base64-output=DECODE-ROWS -v mysql-bin.000435 > log.txt;
python 恢复软件
https://github.com/danfengcao/binlog2sql
阿里云binlog 恢复文件