mysql基于binlog回滚工具

https://github.com/danfengcao/binlog2sql

正常维护。应用于部分公司线上环境。

  • 已测试环境
    • Python 2.7, 3.4+
    • MySQL 5.6, 5.7

安装

shell> git clone https://github.com/danfengcao/binlog2sql.git && cd binlog2sql
shell> pip install -r requirements.txt

git与pip的安装问题请自行搜索解决。

使用

MySQL server必须设置以下参数:

[mysqld]
server_id = 1
log_bin = /var/log/mysql/mysql-bin.log
max_binlog_size = 1G
binlog_format = row
binlog_row_image = full

mysql基于binlog回滚工具_flashback(python版本)

posted @ 2022-03-23 11:42  技术颜良  阅读(82)  评论(0编辑  收藏  举报