1 let $LOAD_FILE= $MYSQLTEST_VARDIR/std_data/words.dat;
2 CREATE TABLE t1 (word CHAR(20) NOT NULL);
3 --replace_result $LOAD_FILE LOAD_FILE
4 eval LOAD DATA INFILE '$LOAD_FILE' INTO TABLE t1;
5 --replace_result $LOAD_FILE LOAD_FILE
6 eval LOAD DATA INFILE '$LOAD_FILE' INTO TABLE t1;
7 SELECT * FROM t1 ORDER BY word LIMIT 10;
10 # Test slave with wrong password
17 SET PASSWORD FOR root@"localhost" = PASSWORD('foo');
22 # Give slave time to do at last one failed connect retry
23 # This one must be short so that the slave will not stop retrying
25 SET PASSWORD FOR root@"localhost" = PASSWORD('');
26 # Give slave time to connect (will retry every second)
29 CREATE TABLE t3(n INT);
30 INSERT INTO t3 VALUES(1),(2);
31 sync_slave_with_master;
32 SELECT * FROM t3 ORDER BY n;
33 SELECT SUM(LENGTH(word)) FROM t1;
40 # Test if the slave SQL thread can be more than 16K behind the slave
41 # I/O thread (> IO_SIZE)
44 # we'll use table-level locking to delay slave SQL thread
45 eval CREATE TABLE t1 (n INT) ENGINE=$engine_type;
46 sync_slave_with_master;
55 # Generate 16K of relay log
59 eval INSERT INTO t1 VALUES($1);
63 SELECT COUNT(*) FROM t1;
66 # Try to cause a large relay log lag on the slave by locking t1
72 SELECT COUNT(*) FROM t1;
76 CREATE TABLE t1 (n INT);
77 INSERT INTO t1 VALUES(3456);
78 sync_slave_with_master;
83 sync_slave_with_master;