2001-09-28 07:05:54 +02:00
|
|
|
slave stop;
|
2002-08-08 02:12:02 +02:00
|
|
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
2001-09-28 07:05:54 +02:00
|
|
|
reset master;
|
|
|
|
reset slave;
|
|
|
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
|
|
|
slave start;
|
|
|
|
drop table if exists t1,t2,t3;
|
|
|
|
create table t2 (n int);
|
|
|
|
create temporary table t1 (n int);
|
|
|
|
insert into t1 values(1),(2),(3);
|
|
|
|
insert into t2 select * from t1;
|
|
|
|
drop table if exists test.t3;
|
|
|
|
create temporary table test.t3 (n int not null);
|
|
|
|
alter table test.t3 add primary key(n);
|
2001-11-05 00:04:08 +01:00
|
|
|
flush logs;
|
2001-09-28 07:05:54 +02:00
|
|
|
insert into t3 values (100);
|
|
|
|
insert into t2 select * from t3;
|
|
|
|
drop table if exists test.t3;
|
|
|
|
insert into t2 values (101);
|
|
|
|
create temporary table t1 (n int);
|
|
|
|
insert into t1 values (4),(5);
|
|
|
|
insert into t2 select * from t1;
|
|
|
|
insert into t2 values(6);
|
|
|
|
select * from t2;
|
2000-12-27 02:31:06 +01:00
|
|
|
n
|
|
|
|
1
|
|
|
|
2
|
|
|
|
3
|
2001-04-11 04:56:54 +02:00
|
|
|
100
|
|
|
|
101
|
2000-12-27 02:31:06 +01:00
|
|
|
4
|
|
|
|
5
|
|
|
|
6
|
2001-09-28 07:05:54 +02:00
|
|
|
show status like 'Slave_open_temp_tables';
|
2001-03-25 00:02:26 +01:00
|
|
|
Variable_name Value
|
|
|
|
Slave_open_temp_tables 0
|
2001-09-28 07:05:54 +02:00
|
|
|
drop table if exists t1,t2;
|