28
28
master-bin.000001 # Table_map 1 # table_id: # (test.t1)
29
29
master-bin.000001 # Write_rows 1 # table_id: # flags: STMT_END_F
30
30
master-bin.000001 # Xid 1 # COMMIT /* XID */
31
show binlog events from 102 limit 1;
31
show binlog events from 106 limit 1;
32
32
Log_name Pos Event_type Server_id End_log_pos Info
33
33
master-bin.000001 # Query 1 # use `test`; create table t1(n int not null auto_increment primary key)ENGINE=InnoDB
34
show binlog events from 102 limit 2;
34
show binlog events from 106 limit 2;
35
35
Log_name Pos Event_type Server_id End_log_pos Info
36
36
master-bin.000001 # Query 1 # use `test`; create table t1(n int not null auto_increment primary key)ENGINE=InnoDB
37
37
master-bin.000001 # Table_map 1 # table_id: # (test.t1)
38
show binlog events from 102 limit 2,1;
38
show binlog events from 106 limit 2,1;
39
39
Log_name Pos Event_type Server_id End_log_pos Info
40
40
master-bin.000001 # Write_rows 1 # table_id: # flags: STMT_END_F
50
50
create table t2 (n int)ENGINE=InnoDB;
51
51
insert into t2 values (1);
52
show binlog events from <binlog_start>;
53
53
Log_name Pos Event_type Server_id End_log_pos Info
54
master-bin.000001 # Format_desc 1 # Server ver: VERSION, Binlog ver: 4
55
master-bin.000001 # Query 1 # use `test`; create table t1(n int not null auto_increment primary key)ENGINE=InnoDB
56
master-bin.000001 # Table_map 1 # table_id: # (test.t1)
57
master-bin.000001 # Write_rows 1 # table_id: # flags: STMT_END_F
58
master-bin.000001 # Xid 1 # COMMIT /* XID */
59
master-bin.000001 # Query 1 # use `test`; drop table t1
60
master-bin.000001 # Query 1 # use `test`; create table t1 (word char(20) not null)ENGINE=InnoDB
61
master-bin.000001 # Table_map 1 # table_id: # (test.t1)
62
master-bin.000001 # Write_rows 1 # table_id: # flags: STMT_END_F
63
master-bin.000001 # Xid 1 # COMMIT /* XID */
64
master-bin.000001 # Rotate 1 # master-bin.000002;pos=4
54
master-bin.000001 # Query # # use `test`; create table t1(n int not null auto_increment primary key)ENGINE=InnoDB
55
master-bin.000001 # Table_map # # table_id: # (test.t1)
56
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
57
master-bin.000001 # Xid # # COMMIT /* XID */
58
master-bin.000001 # Query # # use `test`; drop table t1
59
master-bin.000001 # Query # # use `test`; create table t1 (word char(20) not null)ENGINE=InnoDB
60
master-bin.000001 # Table_map # # table_id: # (test.t1)
61
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
62
master-bin.000001 # Xid # # COMMIT /* XID */
63
master-bin.000001 # Rotate # # master-bin.000002;pos=4
65
64
show binlog events in 'master-bin.000002';
66
65
Log_name Pos Event_type Server_id End_log_pos Info
67
66
master-bin.000002 # Format_desc 1 # Server ver: VERSION, Binlog ver: 4
72
71
master-bin.000002 # Xid 1 # COMMIT /* XID */
75
master-bin.000001 1310
74
master-bin.000001 1314
82
81
show binlog events in 'slave-bin.000001' from 4;
83
82
Log_name Pos Event_type Server_id End_log_pos Info
84
83
slave-bin.000001 # Format_desc 2 # Server ver: VERSION, Binlog ver: 4
101
100
slave-bin.000002 # Write_rows 1 # table_id: # flags: STMT_END_F
102
101
slave-bin.000002 # Xid 1 # COMMIT /* XID */
103
102
show slave status;
104
Slave_IO_State Master_Host Master_User Master_Port Connect_Retry Master_Log_File Read_Master_Log_Pos Relay_Log_File Relay_Log_Pos Relay_Master_Log_File Slave_IO_Running Slave_SQL_Running Replicate_Do_DB Replicate_Ignore_DB Replicate_Do_Table Replicate_Ignore_Table Replicate_Wild_Do_Table Replicate_Wild_Ignore_Table Last_Errno Last_Error Skip_Counter Exec_Master_Log_Pos Relay_Log_Space Until_Condition Until_Log_File Until_Log_Pos Master_SSL_Allowed Master_SSL_CA_File Master_SSL_CA_Path Master_SSL_Cert Master_SSL_Cipher Master_SSL_Key Seconds_Behind_Master
105
# 127.0.0.1 root MASTER_PORT 1 master-bin.000002 400 # # master-bin.000002 Yes Yes # 0 0 400 # None 0 No #
103
Slave_IO_State Master_Host Master_User Master_Port Connect_Retry Master_Log_File Read_Master_Log_Pos Relay_Log_File Relay_Log_Pos Relay_Master_Log_File Slave_IO_Running Slave_SQL_Running Replicate_Do_DB Replicate_Ignore_DB Replicate_Do_Table Replicate_Ignore_Table Replicate_Wild_Do_Table Replicate_Wild_Ignore_Table Last_Errno Last_Error Skip_Counter Exec_Master_Log_Pos Relay_Log_Space Until_Condition Until_Log_File Until_Log_Pos Master_SSL_Allowed Master_SSL_CA_File Master_SSL_CA_Path Master_SSL_Cert Master_SSL_Cipher Master_SSL_Key Seconds_Behind_Master Master_SSL_Verify_Server_Cert
104
# 127.0.0.1 root MASTER_PORT 1 master-bin.000002 404 # # master-bin.000002 Yes Yes # 0 0 404 # None 0 No # No
106
105
show binlog events in 'slave-bin.000005' from 4;
107
106
ERROR HY000: Error when executing command SHOW BINLOG EVENTS: Could not find target log
115
114
insert into t1 values (NULL, last_insert_id()), (NULL, last_insert_id());
115
show binlog events from <binlog_start>;
117
116
Log_name Pos Event_type Server_id End_log_pos Info
118
master-bin.000001 # Format_desc 1 # Server ver: VERSION, Binlog ver: 4
119
master-bin.000001 # Table_map 1 # table_id: # (test.t1)
120
master-bin.000001 # Write_rows 1 # table_id: # flags: STMT_END_F
117
master-bin.000001 # Table_map # # table_id: # (test.t1)
118
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
121
119
select * from t1;