2002-10-25 01:46:14 +02:00
|
|
|
stop slave;
|
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;
|
2002-10-25 01:46:14 +02:00
|
|
|
start slave;
|
2001-09-28 07:05:54 +02:00
|
|
|
create table t2 (n int);
|
|
|
|
create temporary table t1 (n int);
|
|
|
|
insert into t1 values(1),(2),(3);
|
|
|
|
insert into t2 select * from t1;
|
2003-01-06 00:48:59 +01:00
|
|
|
create temporary table t3 (n int not null);
|
|
|
|
alter table 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;
|
2003-01-06 00:48:59 +01:00
|
|
|
drop table if exists t3;
|
2001-09-28 07:05:54 +02:00
|
|
|
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;
|
2003-01-06 00:48:59 +01:00
|
|
|
Warnings:
|
|
|
|
Note 1051 Unknown table 't1'
|