row和statement

[root@ma bin]# /usr/local/mysql/bin/mysqlbinlog -vv /var/lib/bin/mysql-bin.000013 --base64-output=DECODE-ROW
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
DELIMITER /*!*/;
# at 4
#140821 1:43:41 server id 1 end_log_pos 120 CRC32 0xfb9cb350 Start: binlog v 4, server v 5.6.15-log created 140821 1:43:41
# at 120
#140821 1:43:59 server id 1 end_log_pos 192 CRC32 0xc98d9995 Query thread_id=267 exec_time=0 error_code=0
SET TIMESTAMP=1408556639/*!*/;
SET @@session.pseudo_thread_id=267/*!*/;
SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=0, @@session.unique_checks=1, @@session.autocommit=1/*!*/;
SET @@session.sql_mode=1075838976/*!*/;
SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/;
/*!\C utf8 *//*!*/;
SET @@session.character_set_client=33,@@session.collation_connection=33,@@session.collation_server=8/*!*/;
SET @@session.lc_time_names=0/*!*/;
SET @@session.collation_database=DEFAULT/*!*/;
BEGIN
/*!*/;
# at 192
#140821 1:43:59 server id 1 end_log_pos 241 CRC32 0x99e96e77 Table_map: `lina`.`xuehao` mapped to number 70
# at 241
#140821 1:43:59 server id 1 end_log_pos 286 CRC32 0x9ef5c4a0 Write_rows: table id 70 flags: STMT_END_F
### INSERT INTO `lina`.`xuehao`
### SET
### @1=33 /* INT meta=0 nullable=1 is_null=0 */
### INSERT INTO `lina`.`xuehao`
### SET
### @1=77 /* INT meta=0 nullable=1 is_null=0 */
# at 286
#140821 1:43:59 server id 1 end_log_pos 317 CRC32 0x8a87b9e6 Xid = 27
COMMIT/*!*/;
# at 317
#140821 1:44:08 server id 1 end_log_pos 364 CRC32 0x35cf2cf2 Rotate to mysql-bin.000014 pos: 4
DELIMITER ;
# End of log file
ROLLBACK /* added by mysqlbinlog */;
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;

[root@ma bin]# /usr/local/mysql/bin/mysqlbinlog -vv /var/lib/bin/mysql-bin.000014 --base64-output=DECODE-ROW
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
DELIMITER /*!*/;
# at 4
#140821 1:44:08 server id 1 end_log_pos 120 CRC32 0x84375b36 Start: binlog v 4, server v 5.6.15-log created 140821 1:44:08
# Warning: this binlog is either in use or was not closed properly.
# at 120
#140821 1:44:42 server id 1 end_log_pos 199 CRC32 0xd54d9867 Query thread_id=267 exec_time=0 error_code=0
SET TIMESTAMP=1408556682/*!*/;
SET @@session.pseudo_thread_id=267/*!*/;
SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=0, @@session.unique_checks=1, @@session.autocommit=1/*!*/;
SET @@session.sql_mode=1075838976/*!*/;
SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/;
/*!\C utf8 *//*!*/;
SET @@session.character_set_client=33,@@session.collation_connection=33,@@session.collation_server=8/*!*/;
SET @@session.lc_time_names=0/*!*/;
SET @@session.collation_database=DEFAULT/*!*/;
BEGIN
/*!*/;
# at 199
#140821 1:44:42 server id 1 end_log_pos 307 CRC32 0x164b3882 Query thread_id=267 exec_time=0 error_code=0
use `lina`/*!*/;
SET TIMESTAMP=1408556682/*!*/;
insert into xuehao values(44),(88)
/*!*/;
# at 307
#140821 1:44:42 server id 1 end_log_pos 338 CRC32 0xe545ed3d Xid = 32
COMMIT/*!*/;
DELIMITER ;
# End of log file
ROLLBACK /* added by mysqlbinlog */;
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*

转载于:https://www.cnblogs.com/lehao/p/3927307.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值