binlog2sql icon indicating copy to clipboard operation
binlog2sql copied to clipboard

Parse MySQL binlog to SQL you want

Results 86 binlog2sql issues
Sort by recently updated
recently updated
newest added

表结构: ``` CREATE TABLE `demo` ( `AutoId` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT 'ID', `UserMongoId` varchar(32) NOT NULL DEFAULT '' COMMENT 'UserId', `name` char(11) DEFAULT NULL, `age` int(11) DEFAULT...

python binlog2sql.py -h192.168.56.101 -P3306 -uroot -pXUq12 --start-file='binlog.000008' Traceback (most recent call last): File "binlog2sql.py", line 152, in back_interval=args.back_interval, only_dml=args.only_dml, sql_type=args.sql_type) File "binlog2sql.py", line 48, in __init__ self.connection = pymysql.connect(**self.conn_setting) File...

python binlog2sql.py -h127.0.0.1 -P3306 -u root -p'root' -d orthodontic -t meyer_users --sql-type DELETE --start-datetime '2022-06-01 00:00:00' --start-file='mysql-bin.000016' 上面是执行的语句 但是 数据库 和 表都没有刷选 还是输出所有的日志

为啥我 用的时候要改很多代码?不然就会报错 例如: `with self.connection as cursor` 后面只要是用with管理的上下文都会报错,

已经确认所有配置准确,linux可以运行,window总是提示以下错误 ValueError: parameter error: start_file 'binlog.000001' not in mysql server

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

![图片](https://user-images.githubusercontent.com/52021646/155951334-af1fe3a7-5e24-4d76-92b3-46544cc72cb9.png) ![图片](https://user-images.githubusercontent.com/52021646/155951386-d041e217-bcc5-426b-b1b4-1bffa0e375ab.png) ![图片](https://user-images.githubusercontent.com/52021646/155951477-092db6c0-ee01-424d-b29f-51cecdf53d71.png)

![image](https://user-images.githubusercontent.com/26086891/148513146-ee0a0c52-523d-4848-bb1f-7a51b1d23145.png) 数据库为 mysql 5.7.36,查出来的sql如图

您好,感谢提供的脚本 **有个问题想了解一下,为什么您在设计的时候需要连接到服务器呢?** 从代码层面初步了解到,从库中查了SHOW MASTER STATUS、server_id等信息,但连接到数据库后会受到mysql server配置影响,比如max_allowed_packet(max_allowed_packet一般情况下是默认值),我们的应用场景大多是恢复生产数据,如果要恢复还需要修改服务器参数等,对生产影响较大,谢谢!