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