1########################################################################## 2# This test verifies if a slave is able to process a "LOAD DATA INFILE" 3# event while the "--secure-file-priv" option is set. 4# 5# The test is divided in two steps: 6# 1 - Creates tables and populates them through "LOAD DATA INFILE". 7# 2 - Compares the master and slave. 8########################################################################## 9--source include/have_innodb.inc 10--source include/master-slave.inc 11 12########################################################################## 13# Loading data 14########################################################################## 15connection master; 16 17create table t1(a int not null auto_increment, b int, primary key(a)); 18create table t2(a int not null auto_increment, b int, primary key(a)) engine=innodb; 19 20load data infile '../../std_data/rpl_loaddata.dat' into table t1; 21 22start transaction; 23 insert into t2(b) values (1); 24 insert into t2(b) values (2); 25 load data infile '../../std_data/rpl_loaddata.dat' into table t2; 26 load data infile '../../std_data/rpl_loaddata.dat' into table t2; 27commit; 28 29########################################################################## 30# Checking Consistency 31########################################################################## 32sync_slave_with_master; 33 34let $diff_tables= master:t1, slave:t1; 35source include/diff_tables.inc; 36 37let $diff_tables= master:t2, slave:t2; 38source include/diff_tables.inc; 39 40########################################################################## 41# Clean up 42########################################################################## 43connection master; 44 45drop table t1; 46drop table t2; 47 48sync_slave_with_master; 49--source include/rpl_end.inc 50