2007-12-21 22:34:43 +02:00
|
|
|
stop slave;
|
|
|
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
|
|
|
reset master;
|
|
|
|
reset slave;
|
|
|
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
|
|
|
start slave;
|
2008-07-18 13:34:19 +02:00
|
|
|
==== Create a big file ====
|
|
|
|
==== Load our big file into a table ====
|
2007-12-21 22:34:43 +02:00
|
|
|
create table t2 (id int not null primary key auto_increment);
|
2007-12-23 11:18:46 +02:00
|
|
|
select @@session.read_buffer_size - @@session.max_allowed_packet > 0 ;
|
|
|
|
@@session.read_buffer_size - @@session.max_allowed_packet > 0
|
|
|
|
1
|
2007-12-22 19:59:47 +02:00
|
|
|
load data infile 'MYSQLTEST_VARDIR/tmp/bug30435_5k.txt' into table t2;
|
2007-12-21 22:34:43 +02:00
|
|
|
select count(*) from t2 /* 5 000 */;
|
|
|
|
count(*)
|
|
|
|
5000
|
2008-07-18 13:34:19 +02:00
|
|
|
show binlog events from <binlog_start>;
|
2007-12-21 22:34:43 +02:00
|
|
|
Log_name Pos Event_type Server_id End_log_pos Info
|
2008-07-18 13:34:19 +02:00
|
|
|
master-bin.000001 # Query # # use `test`; create table t2 (id int not null primary key auto_increment)
|
|
|
|
master-bin.000001 # Begin_load_query # # ;file_id=#;block_len=#
|
|
|
|
master-bin.000001 # Append_block # # ;file_id=#;block_len=#
|
|
|
|
master-bin.000001 # Append_block # # ;file_id=#;block_len=#
|
|
|
|
master-bin.000001 # Execute_load_query # # use `test`; load data infile 'MYSQLTEST_VARDIR/tmp/bug30435_5k.txt' into table t2 ;file_id=#
|
|
|
|
==== Verify results on slave ====
|
|
|
|
[on slave]
|
2007-12-21 22:34:43 +02:00
|
|
|
select count(*) from t2 /* 5 000 */;
|
|
|
|
count(*)
|
|
|
|
5000
|
2008-07-18 13:34:19 +02:00
|
|
|
==== Clean up ====
|
|
|
|
[on master]
|
|
|
|
drop table t2;
|