56gt 发表于 2018-10-11 06:51:34

ROW 格式binlog 在MySQL5.6上的数据恢复实验

BEGIN---> 这个BEGIN-COMMIT要删除  
/*!*/;
  
# at 662771   --->注意这个Postion,回滚要用到
  
#170116 15:21:31 server id 106end_log_pos 662826 CRC32 0xc2733cd6   Table_map: `hellodb`.`scores` mapped to number 156
  
# at 662826
  
#170116 15:21:31 server id 106end_log_pos 662873 CRC32 0x0d302d22   Delete_rows: table id 156 flags: STMT_END_F
  
### DELETE FROM `hellodb`.`scores`
  
### WHERE
  
###   @1=14 /* INT meta=0 nullable=0 is_null=0 */
  
###   @2=8 /* INT meta=0 nullable=0 is_null=0 */
  
###   @3=4 /* SHORTINT meta=0 nullable=0 is_null=0 */
  
###   @4=57 /* TINYINT meta=0 nullable=1 is_null=0 */
  
# at 662873
  
#170116 15:21:31 server id 106end_log_pos 662904 CRC32 0x7bda6198   Xid = 1136
  
COMMIT/*!*/;
  

  

  
# at 662904---> 这个BEGIN COMMIT要保留,这个是用户的正常操作的sql
  
#170116 15:21:42 server id 106end_log_pos 663027 CRC32 0xa7dc153b   Query   thread_id=10    exec_time=0   error_code=0
  
SET TIMESTAMP=1484551302/*!*/;
  
grant all on *.* to 'abc'@'%'
  
/*!*/;
  
# at 663027
  
#170116 15:21:49 server id 106end_log_pos 663102 CRC32 0xa7570f25   Query   thread_id=10    exec_time=0   error_code=0
  
SET TIMESTAMP=1484551309/*!*/;
  

  

  
BEGIN---> 这个BEGIN-COMMIT要删除
  
/*!*/;
  
# at 663102--->注意这个Postion,回滚要用到
  
#170116 15:21:49 server id 106end_log_pos 663157 CRC32 0x20b81986   Table_map: `hellodb`.`scores` mapped to number 156
  
# at 663157
  
#170116 15:21:49 server id 106end_log_pos 663204 CRC32 0x26d9f8b8   Delete_rows: table id 156 flags: STMT_END_F
  
### DELETE FROM `hellodb`.`scores`
  
### WHERE
  
###   @1=10 /* INT meta=0 nullable=0 is_null=0 */
  
###   @2=5 /* INT meta=0 nullable=0 is_null=0 */
  
###   @3=7 /* SHORTINT meta=0 nullable=0 is_null=0 */
  
###   @4=63 /* TINYINT meta=0 nullable=1 is_null=0 */
  
# at 663204
  
#170116 15:21:49 server id 106end_log_pos 663235 CRC32 0x81f9c1d6   Xid = 1138
  
COMMIT/*!*/;
  
# at 663235
  
#170116 15:22:59 server id 106end_log_pos 663310 CRC32 0xb3b0508d   Query   thread_id=10    exec_time=0   error_code=0
  
SET TIMESTAMP=1484551379/*!*/;
  

  

  
BEGIN ---> 这个BEGIN-COMMIT要保留,这个是用户的正常操作的sql
  
/*!*/;
  
# at 663310   --->注意这个Postion,回滚要用到
  
#170116 15:22:59 server id 106end_log_pos 663373 CRC32 0x17a48bfc   Table_map: `hellodb`.`students` mapped to number 152
  
# at 663373
  
#170116 15:22:59 server id 106end_log_pos 663424 CRC32 0x0acbd405   Write_rows: table id 152 flags: STMT_END_F
  
### INSERT INTO `hellodb`.`students`
  
### SET
  
###   @1=100 /* INT meta=0 nullable=0 is_null=0 */
  
###   @2='www' /* VARSTRING(150) meta=150 nullable=0 is_null=0 */
  
###   @3=100 /* TINYINT meta=0 nullable=0 is_null=0 */
  
###   @4=1 /* ENUM(1 byte) meta=63233 nullable=0 is_null=0 */
  
###   @5=3 /* TINYINT meta=0 nullable=1 is_null=0 */
  
###   @6=5 /* INT meta=0 nullable=1 is_null=0 */
  
# at 663424
  
#170116 15:22:59 server id 106end_log_pos 663455 CRC32 0x1f37c970   Xid = 1139
  
COMMIT/*!*/;


页: [1]
查看完整版本: ROW 格式binlog 在MySQL5.6上的数据恢复实验