2
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
5
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
8
id INT(5) unsigned NOT NULL auto_increment,
9
name varchar(15) NOT NULL default '',
10
number varchar(35) NOT NULL default 'default',
12
UNIQUE KEY unique_rec (name,number)
15
INFILE '../std_data_ln/loaddata_pair.dat'
27
INFILE '../std_data_ln/loaddata_pair.dat'
40
DROP DATABASE IF EXISTS mysqltest1;
41
CREATE DATABASE mysqltest1;
42
CREATE TEMPORARY TABLE mysqltest1.tmp (f1 BIGINT);
43
CREATE TABLE mysqltest1.t1 (f1 BIGINT) ENGINE="InnoDB";
45
-------- switch to slave --------
46
SHOW CREATE TABLE mysqltest1.t1;
48
t1 CREATE TABLE `t1` (
49
`f1` bigint(20) DEFAULT NULL
50
) ENGINE=MyISAM DEFAULT CHARSET=latin1
51
-------- switch to master --------
52
INSERT INTO mysqltest1.t1 SET f1= 1;
53
DROP TEMPORARY TABLE mysqltest1.tmp;
55
SHOW CREATE TABLE mysqltest1.tmp;
56
ERROR 42S02: Table 'mysqltest1.tmp' doesn't exist
57
SELECT COUNT(*) FROM mysqltest1.t1;
60
INSERT INTO mysqltest1.t1 SET f1= 2;
61
CREATE TEMPORARY TABLE mysqltest1.tmp2(a INT);
63
SHOW CREATE TABLE mysqltest1.tmp2;
65
tmp2 CREATE TEMPORARY TABLE `tmp2` (
66
`a` int(11) DEFAULT NULL
67
) ENGINE=MyISAM DEFAULT CHARSET=latin1
68
SELECT COUNT(*) FROM mysqltest1.t1;
71
-------- switch to slave --------
72
SHOW CREATE TABLE mysqltest1.tmp;
73
ERROR 42S02: Table 'mysqltest1.tmp' doesn't exist
74
SHOW CREATE TABLE mysqltest1.tmp2;
75
ERROR 42S02: Table 'mysqltest1.tmp2' doesn't exist
76
SELECT COUNT(*) FROM mysqltest1.t1;
80
-------- switch to master --------
82
DROP DATABASE mysqltest1;