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
select last_insert_id();
11
create table t1(a int not null auto_increment, b int, primary key(a) );
12
load data infile '../std_data_ln/rpl_loaddata.dat' into table t1;
13
select last_insert_id();
16
create temporary table t2 (day date,id int(9),category enum('a','b','c'),name varchar(60));
17
load data infile '../std_data_ln/rpl_loaddata2.dat' into table t2 fields terminated by ',' optionally enclosed by '%' escaped by '@' lines terminated by '\n##\n' starting by '>' ignore 1 lines;
18
create table t3 (day date,id int(9),category enum('a','b','c'),name varchar(60));
19
insert into t3 select * from t2;
26
2003-02-22 2461 b a a a @ % ' " a
27
2003-03-22 2161 c asdf
28
2003-03-22 2416 a bbbbb
32
create table t1(a int, b int, unique(b));
33
insert into t1 values(1,10);
34
load data infile '../std_data_ln/rpl_loaddata.dat' into table t1;
35
set global sql_slave_skip_counter=1;
41
Master_Port MASTER_PORT
43
Master_Log_File master-bin.000001
44
Read_Master_Log_Pos 1798
47
Relay_Master_Log_File master-bin.000001
53
Replicate_Ignore_Table #
54
Replicate_Wild_Do_Table
55
Replicate_Wild_Ignore_Table
59
Exec_Master_Log_Pos 1798
70
Seconds_Behind_Master #
71
Master_SSL_Verify_Server_Cert No
79
load data infile '../std_data_ln/rpl_loaddata.dat' into table t1;
81
change master to master_user='test';
82
change master to master_user='root';
87
Master_Port MASTER_PORT
89
Master_Log_File master-bin.000001
90
Read_Master_Log_Pos 1833
93
Relay_Master_Log_File master-bin.000001
99
Replicate_Ignore_Table #
100
Replicate_Wild_Do_Table
101
Replicate_Wild_Ignore_Table
105
Exec_Master_Log_Pos 1833
110
Master_SSL_Allowed No
116
Seconds_Behind_Master #
117
Master_SSL_Verify_Server_Cert No
122
set global sql_slave_skip_counter=1;
127
load data infile '../std_data_ln/rpl_loaddata.dat' into table t1;
132
Master_Host 127.0.0.1
134
Master_Port MASTER_PORT
137
Read_Master_Log_Pos 4
140
Relay_Master_Log_File
146
Replicate_Ignore_Table #
147
Replicate_Wild_Do_Table
148
Replicate_Wild_Ignore_Table
152
Exec_Master_Log_Pos 0
157
Master_SSL_Allowed No
163
Seconds_Behind_Master #
164
Master_SSL_Verify_Server_Cert No
170
create table t2 (day date,id int(9),category enum('a','b','c'),name varchar(60),
171
unique(day)) engine=MyISAM;
172
load data infile '../std_data_ln/rpl_loaddata2.dat' into table t2 fields
173
terminated by ',' optionally enclosed by '%' escaped by '@' lines terminated by
174
'\n##\n' starting by '>' ignore 1 lines;
175
ERROR 23000: Duplicate entry '2003-03-22' for key 'day'
178
2003-02-22 2461 b a a a @ % ' " a
179
2003-03-22 2161 c asdf
183
2003-02-22 2461 b a a a @ % ' " a
184
2003-03-22 2161 c asdf
185
alter table t2 drop key day;
187
load data infile '../std_data_ln/rpl_loaddata2.dat' into table t2 fields
188
terminated by ',' optionally enclosed by '%' escaped by '@' lines terminated by
189
'\n##\n' starting by '>' ignore 1 lines;
190
ERROR 23000: Duplicate entry '2003-03-22' for key 'day'
194
CREATE TABLE t1 (word CHAR(20) NOT NULL PRIMARY KEY) ENGINE=INNODB;
195
LOAD DATA INFILE "../std_data_ln/words.dat" INTO TABLE t1;
196
ERROR 23000: Duplicate entry 'Aarhus' for key 'PRIMARY'
197
DROP TABLE IF EXISTS t1;