用reparo解析的文件不是sql,跟mysql的binlog格式也是有区别的。不知道能否满足你的需求。
例如:
MySQL [test]> create table t1(id int primary key,name varchar(20));
Query OK, 0 rows affected (0.13 sec)
MySQL [test]> insert into test.t1 values(1,'a'),(2,'b'),(3,'c');
Query OK, 3 rows affected (0.01 sec)
Records: 3 Duplicates: 0 Warnin…