--source include/have_ndb.inc --source include/have_binlog_format_mixed_or_row.inc --source suite/ndb_rpl/ndb_master-slave.inc --source include/rpl_connection_slave.inc show variables like 'replica_parallel_workers'; show variables like 'replica_skip_errors'; create database extra; use test; create table t1 (a int primary key, rb int) engine=ndb; create table t3 (a int primary key, b int, c int) engine=ndb; create table t4 (a int primary key, b int) engine=ndb; create table t5 (a int primary key, b int, key yale (b)) engine=ndb; --source include/rpl_connection_master.inc --echo #Create database (already exists on replica) create database extra; drop database extra; --echo #Drop database (does not exist on replica) set sql_log_bin=0; create database surplus; set sql_log_bin=1; drop database surplus; use test; --echo #Create table which already exists on replica create table t1 (a int primary key, sb int) engine=ndb; --echo #Drop table which does not exist on replica set sql_log_bin=0; create table t2 (a int primary key, sb int) engine=ndb; set sql_log_bin=1; drop table t2; --echo #Add column to table which already exists on replica table set sql_log_bin=0; create table t3 (a int primary key, b int) engine=ndb; set sql_log_bin=1; alter table t3 add column c int; --echo #Drop column which does not exist on replica table set sql_log_bin=0; create table t4 (a int primary key, b int, c int) engine=ndb; set sql_log_bin=1; alter table t4 drop column c; --echo #Add index to table which already exists on replica table set sql_log_bin=0; create table t5 (a int primary key, b int, key chubb (b)) engine=ndb; set sql_log_bin=1; alter table t5 add index yale(b); --echo #Drop index from table which does not exist on replica table alter table t5 drop index chubb; --source include/sync_slave_sql_with_master.inc --source include/rpl_connection_slave.inc show tables; show create table t1; show create table t3; show create table t4; show create table t5; --source include/rpl_connection_master.inc drop table t1; drop table t3; drop table t4; drop table t5; # Cleanup Replication --source include/rpl_end.inc