ndb_binlog_log_bin.result 3.63 KB
Newer Older
unknown's avatar
unknown committed
1 2 3 4 5 6 7 8 9 10 11 12 13
drop table if exists t1,t2,t3;
reset master;
drop table if exists t1,t2,t3;
reset master;
set SQL_LOG_BIN=0;
create database mysqltest;
use mysqltest;
create table t1 (a int key, b int) engine=ndb;
create table t2 (a int key, b int) engine=ndb;
insert into t1 values (1,1);
alter table t1 add c int;
show binlog events from <binlog_start>;
Log_name	Pos	Event_type	Server_id	End_log_pos	Info
14 15 16 17 18
mysqld-bin.000001	#	Query	1	#	BEGIN
mysqld-bin.000001	#	Table_map	1	#	table_id: # (mysqltest.t1)
mysqld-bin.000001	#	Table_map	1	#	table_id: # (mysql.ndb_apply_status)
mysqld-bin.000001	#	Write_rows	1	#	table_id: # flags: STMT_END_F
mysqld-bin.000001	#	Query	1	#	COMMIT
unknown's avatar
unknown committed
19 20 21 22 23
reset master;
use mysqltest;
insert into t2 values (1,1);
show binlog events from <binlog_start>;
Log_name	Pos	Event_type	Server_id	End_log_pos	Info
24 25 26 27 28 29 30 31 32 33 34
mysqld-bin.000001	#	Query	2	#	BEGIN
mysqld-bin.000001	#	Table_map	2	#	table_id: # (mysqltest.t1)
mysqld-bin.000001	#	Table_map	2	#	table_id: # (mysql.ndb_apply_status)
mysqld-bin.000001	#	Write_rows	2	#	table_id: # flags: STMT_END_F
mysqld-bin.000001	#	Query	2	#	COMMIT
mysqld-bin.000001	#	Query	2	#	BEGIN
mysqld-bin.000001	#	Table_map	2	#	table_id: # (mysqltest.t2)
mysqld-bin.000001	#	Table_map	2	#	table_id: # (mysql.ndb_apply_status)
mysqld-bin.000001	#	Write_rows	2	#	table_id: #
mysqld-bin.000001	#	Write_rows	2	#	table_id: # flags: STMT_END_F
mysqld-bin.000001	#	Query	2	#	COMMIT
unknown's avatar
unknown committed
35 36 37 38 39 40 41 42 43
reset master;
use mysqltest;
drop table t1;
drop table t2;
create table t1 (d int key, e int) engine=ndb;
create table t2 (d int key, e int) engine=ndb;
insert into t1 values (1,1);
show binlog events from <binlog_start>;
Log_name	Pos	Event_type	Server_id	End_log_pos	Info
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
mysqld-bin.000001	#	Query	1	#	BEGIN
mysqld-bin.000001	#	Table_map	1	#	table_id: # (mysqltest.t2)
mysqld-bin.000001	#	Table_map	1	#	table_id: # (mysql.ndb_apply_status)
mysqld-bin.000001	#	Write_rows	1	#	table_id: #
mysqld-bin.000001	#	Write_rows	1	#	table_id: # flags: STMT_END_F
mysqld-bin.000001	#	Query	1	#	COMMIT
mysqld-bin.000001	#	Query	1	#	use `mysqltest`; drop table t1
mysqld-bin.000001	#	Query	1	#	use `mysqltest`; drop table t2
mysqld-bin.000001	#	Query	1	#	use `mysqltest`; create table t1 (d int key, e int) engine=ndb
mysqld-bin.000001	#	Query	1	#	use `mysqltest`; create table t2 (d int key, e int) engine=ndb
mysqld-bin.000001	#	Query	1	#	BEGIN
mysqld-bin.000001	#	Table_map	1	#	table_id: # (mysqltest.t1)
mysqld-bin.000001	#	Table_map	1	#	table_id: # (mysql.ndb_apply_status)
mysqld-bin.000001	#	Write_rows	1	#	table_id: #
mysqld-bin.000001	#	Write_rows	1	#	table_id: # flags: STMT_END_F
mysqld-bin.000001	#	Query	1	#	COMMIT
unknown's avatar
unknown committed
60 61 62 63
use mysqltest;
insert into t2 values (1,1);
show binlog events from <binlog_start>;
Log_name	Pos	Event_type	Server_id	End_log_pos	Info
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
mysqld-bin.000001	#	Query	1	#	use `mysqltest`; drop table `t1`
mysqld-bin.000001	#	Query	1	#	use `mysqltest`; drop table `t2`
mysqld-bin.000001	#	Query	1	#	use `mysqltest`; create table t1 (d int key, e int) engine=ndb
mysqld-bin.000001	#	Query	1	#	use `mysqltest`; create table t2 (d int key, e int) engine=ndb
mysqld-bin.000001	#	Query	2	#	BEGIN
mysqld-bin.000001	#	Table_map	2	#	table_id: # (mysqltest.t1)
mysqld-bin.000001	#	Table_map	2	#	table_id: # (mysql.ndb_apply_status)
mysqld-bin.000001	#	Write_rows	2	#	table_id: #
mysqld-bin.000001	#	Write_rows	2	#	table_id: # flags: STMT_END_F
mysqld-bin.000001	#	Query	2	#	COMMIT
mysqld-bin.000001	#	Query	2	#	BEGIN
mysqld-bin.000001	#	Table_map	2	#	table_id: # (mysqltest.t2)
mysqld-bin.000001	#	Table_map	2	#	table_id: # (mysql.ndb_apply_status)
mysqld-bin.000001	#	Write_rows	2	#	table_id: #
mysqld-bin.000001	#	Write_rows	2	#	table_id: # flags: STMT_END_F
mysqld-bin.000001	#	Query	2	#	COMMIT
unknown's avatar
unknown committed
80
drop database mysqltest;