You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
输出为时间和SQL文本。
#TIME: 2016-12-13 22:44:05
INSERT INTO `test`.`t_test` values( 1 ,1);
#TIME: 2016-12-13 22:44:16
INSERT INTO `test`.`t_test` values( 2 ,2);
#TIME: 2016-12-13 22:44:34
UPDATE `test`.`t_test` SET `a`=2 , `b`=3 WHERE `a`=2 AND `b`=2 ;
#TIME: 2016-12-13 22:44:40
DELETE FROM `test`.`t_test` WHERE `a`=1 AND `b`=1;
REDO2模式
在以上模式基础上,增加了GTID信息输出。
#TIME: 2016-12-13 22:44:05
#GTID: 3809e73c-701b-11e6-9202-000c29273501:563461
INSERT INTO `test`.`t_test` values( 1 ,1);
#TIME: 2016-12-13 22:44:16
#GTID: 3809e73c-701b-11e6-9202-000c29273501:563462
INSERT INTO `test`.`t_test` values( 2 ,2);
#TIME: 2016-12-13 22:44:34
#GTID: 3809e73c-701b-11e6-9202-000c29273501:563463
UPDATE `test`.`t_test` SET `a`=2 , `b`=3 WHERE `a`=2 AND `b`=2 ;
#TIME: 2016-12-13 22:44:40
#GTID: 3809e73c-701b-11e6-9202-000c29273501:563464
DELETE FROM `test`.`t_test` WHERE `a`=1 AND `b`=1;
REDO3模式
在以上模式基础上,增加了LOGPOS信息输出。
#LOGPOS: 259
use `test`;
create table t_test(a int ,b int);
#LOGPOS: 431
BEGIN;
#LOGPOS: 553
#TIME: 2016-12-13 22:44:05
#GTID: 3809e73c-701b-11e6-9202-000c29273501:563461
INSERT INTO `test`.`t_test` values( 1 ,1);
#LOGPOS: 597
COMMIT;
UNDO模式
生成上述SQL的逆向SQL
#TIME: 2016-12-13 22:44:40
INSERT INTO `test`.`t_test` VALUES ( 1 , 1);
#TIME: 2016-12-13 22:44:34
UPDATE `test`.`t_test` SET `a`=2 , `b`=2 WHERE `a`=2 AND `b`=3;
#TIME: 2016-12-13 22:44:16
DELETE FROM `test`.`t_test` WHERE `a`=2 AND `b`=2;
#TIME: 2016-12-13 22:44:05
DELETE FROM `test`.`t_test` WHERE `a`=1 AND `b`=1;