2000-12-07 07:54:59 -07:00
|
|
|
source include/master-slave.inc;
|
2003-01-06 01:48:59 +02:00
|
|
|
|
2000-11-17 23:35:40 -07:00
|
|
|
set SQL_LOG_BIN=0;
|
2001-01-03 02:15:48 +02:00
|
|
|
create table t1 (word char(20) not null, index(word));
|
|
|
|
load data infile '../../std_data/words.dat' into table t1;
|
|
|
|
create table t2 (word char(20) not null);
|
|
|
|
load data infile '../../std_data/words.dat' into table t2;
|
2001-01-18 17:36:20 -07:00
|
|
|
create table t3 (word char(20) not null primary key);
|
2000-11-17 23:35:40 -07:00
|
|
|
connection slave;
|
2001-01-03 02:15:48 +02:00
|
|
|
load table t1 from master;
|
|
|
|
load table t2 from master;
|
2001-01-18 10:43:09 -07:00
|
|
|
load table t3 from master;
|
|
|
|
check table t1;
|
|
|
|
select count(*) from t2;
|
|
|
|
select count(*) from t3;
|
2001-01-17 05:47:33 -07:00
|
|
|
connection master;
|
|
|
|
set SQL_LOG_BIN=1;
|
2001-01-18 10:43:09 -07:00
|
|
|
drop table if exists t1,t2,t3;
|
2001-01-17 05:47:33 -07:00
|
|
|
save_master_pos;
|
|
|
|
connection slave;
|
|
|
|
sync_with_master;
|
|
|
|
create table t1(n int);
|
|
|
|
drop table t1;
|