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*