Current Path : /home/usr.opt/mysql57/mysql-test/suite/ndb_rpl/r/ |
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 |
Current File : //home/usr.opt/mysql57/mysql-test/suite/ndb_rpl/r/ndb_rpl_ui.result |
include/master-slave.inc Warnings: Note #### Sending passwords in plain text without SSL/TLS is extremely insecure. Note #### Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information. [connection master] CREATE TABLE t1 (pk int primary key, uk int not null, unique(uk)) engine=ndb; insert into t1 values (1,1); insert into t1 values (2,2); insert into t1 values (3,3); insert into t1 values (4,4); insert into t1 values (5,5); select * from t1 where uk in (1,2,3,4,5); pk uk 1 1 2 2 3 3 4 4 5 5 update t1 set uk=uk-1 order by pk; select * from t1 where uk in (0,1,2,3,4); pk uk 1 0 2 1 3 2 4 3 5 4 Master table contents select * from t1 order by pk; pk uk 1 0 2 1 3 2 4 3 5 4 flush logs; Slave table contents select * from t1 order by pk; pk uk 1 0 2 1 3 2 4 3 5 4 select * from t1 where uk in (0,1,2,3,4); pk uk 1 0 2 1 3 2 4 3 5 4 drop table t1; CREATE TABLE t1 (a int not null, b int auto_increment, uk int null, primary key(a,b), unique(uk)) engine=ndb partition by key(a); CREATE TABLE t2 (a int not null auto_increment primary key) engine = ndb; begin; insert into t1 values (1,null,1), (1,null, 2), (1,null, 3), (1,null, 4); insert into t2 values (null), (null), (null), (null); insert into t2 select null from t2; insert into t2 select null from t2; insert into t2 select null from t2; insert into t2 select null from t2; insert into t2 select null from t2; insert into t2 select null from t2; insert into t2 select null from t2; insert into t2 select null from t2; commit; select count(*) from t1; count(*) 4 select count(*) from t2; count(*) 1024 select count(*) from t1; count(*) 4 select count(*) from t2; count(*) 1024 drop table t1; drop table t2; include/rpl_end.inc