2015-10-08 10:16:35 +03:00
|
|
|
include/master-slave.inc
|
|
|
|
[connection master]
|
|
|
|
use test;
|
|
|
|
create table t1 (a int primary key);
|
|
|
|
insert into t1 values (1),(2),(3),(4),(5);
|
|
|
|
update t1 set a=a*10;
|
2016-03-25 20:51:22 +04:00
|
|
|
connection slave;
|
2015-10-08 10:16:35 +03:00
|
|
|
use test;
|
|
|
|
select * from t1;
|
|
|
|
a
|
|
|
|
10
|
|
|
|
20
|
|
|
|
30
|
|
|
|
40
|
|
|
|
50
|
|
|
|
include/show_binlog_events.inc
|
|
|
|
Log_name Pos Event_type Server_id End_log_pos Info
|
|
|
|
slave-bin.000001 # Gtid # # GTID #-#-#
|
|
|
|
slave-bin.000001 # Query # # use `test`; create table t1 (a int primary key)
|
|
|
|
slave-bin.000001 # Gtid # # BEGIN GTID #-#-#
|
2016-12-19 17:32:45 -05:00
|
|
|
slave-bin.000001 # Annotate_rows # # insert into t1 values (1),(2),(3),(4),(5)
|
2015-10-08 10:16:35 +03:00
|
|
|
slave-bin.000001 # Table_map # # table_id: # (test.t1)
|
|
|
|
slave-bin.000001 # Write_rows_v1 # # table_id: # flags: STMT_END_F
|
|
|
|
slave-bin.000001 # Query # # COMMIT
|
|
|
|
slave-bin.000001 # Gtid # # BEGIN GTID #-#-#
|
2016-12-19 17:32:45 -05:00
|
|
|
slave-bin.000001 # Annotate_rows # # update t1 set a=a*10
|
2015-10-08 10:16:35 +03:00
|
|
|
slave-bin.000001 # Table_map # # table_id: # (test.t1)
|
|
|
|
slave-bin.000001 # Update_rows_v1 # # table_id: # flags: STMT_END_F
|
|
|
|
slave-bin.000001 # Query # # COMMIT
|
2016-03-25 20:51:22 +04:00
|
|
|
connection master;
|
2015-10-08 10:16:35 +03:00
|
|
|
drop table t1;
|
|
|
|
include/rpl_end.inc
|