2007-04-18 21:39:45 +02:00
|
|
|
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
|
2007-12-19 17:16:22 +01:00
|
|
|
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
|
2007-04-18 21:39:45 +02:00
|
|
|
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
|
2007-12-19 17:16:22 +01:00
|
|
|
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
|
2007-04-18 21:39:45 +02:00
|
|
|
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
|
2007-12-19 17:16:22 +01:00
|
|
|
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
|
2007-04-18 21:39:45 +02:00
|
|
|
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
|
2007-12-19 17:16:22 +01:00
|
|
|
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
|
2007-04-18 21:39:45 +02:00
|
|
|
drop database mysqltest;
|