config root man

Current Path : /home/usr.opt/mysql57/mysql-test/suite/ndb_rpl/t/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //home/usr.opt/mysql57/mysql-test/suite/ndb_rpl/t/ndb_rpl_ui2.test

# The include statement below is a temp one for tests that are yet to
#be ported to run with InnoDB,
#but needs to be kept for tests that would need MyISAM in future.
--source include/force_myisam_default.inc

--source include/have_ndb.inc
--source include/have_binlog_format_mixed_or_row.inc
--source suite/ndb_rpl/ndb_master-slave.inc

--connection master

CREATE TABLE t1 (pk int primary key, uk int not null, unique(uk)) engine=ndb;

--sync_slave_with_master
--connection slave
STOP SLAVE;
insert into t1 values (1,1);
insert into t1 values (2,2);
--connection master
begin;
insert into t1 values (1,2);
insert into t1 values (2,1);
commit;
delete from t1;
begin;
insert into t1 values (1,1);
insert into t1 values (2,2);
commit;

--connection slave
start slave;

--connection master
--sync_slave_with_master
--connection slave
--sorted_result
select * from t1;

--connection master
drop table t1;
--sync_slave_with_master

--source include/rpl_end.inc

Man Man