mirror of
https://github.com/MariaDB/server.git
synced 2025-02-02 03:51:50 +01:00
36 lines
1.3 KiB
Text
36 lines
1.3 KiB
Text
|
##########################################################################
|
||
|
# This test verifies if a slave is able to process a "LOAD DATA INFILE"
|
||
|
# event while the "--secure-file-priv" option is set.
|
||
|
#
|
||
|
# The test is divided in two steps:
|
||
|
# 1 - Creates a table and populates it through "LOAD DATA INFILE".
|
||
|
# 2 - Compares the master and slave.
|
||
|
##########################################################################
|
||
|
source include/master-slave.inc;
|
||
|
|
||
|
##########################################################################
|
||
|
# Loading data
|
||
|
##########################################################################
|
||
|
connection master;
|
||
|
|
||
|
create table t1(a int not null auto_increment, b int, primary key(a));
|
||
|
load data infile '../../std_data/rpl_loaddata.dat' into table t1;
|
||
|
|
||
|
##########################################################################
|
||
|
# Checking Consistency
|
||
|
##########################################################################
|
||
|
sync_slave_with_master;
|
||
|
|
||
|
let $diff_table_1=master:test.t1;
|
||
|
let $diff_table_2=slave:test.t1;
|
||
|
source include/diff_tables.inc;
|
||
|
|
||
|
##########################################################################
|
||
|
# Clean up
|
||
|
##########################################################################
|
||
|
connection master;
|
||
|
|
||
|
drop table t1;
|
||
|
|
||
|
sync_slave_with_master;
|