1
CREATE TABLE t1 (word CHAR(20) NOT NULL);
2
LOAD DATA INFILE '../std_data_ln/words.dat' INTO TABLE t1;
3
--replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR
4
eval LOAD DATA LOCAL INFILE '$MYSQL_TEST_DIR/std_data/words.dat' INTO TABLE t1;
5
SELECT * FROM t1 ORDER BY word LIMIT 10;
8
# Test slave with wrong password
15
SET PASSWORD FOR root@"localhost" = PASSWORD('foo');
20
# Give slave time to do at last one failed connect retry
21
# This one must be short so that the slave will not stop retrying
23
SET PASSWORD FOR root@"localhost" = PASSWORD('');
24
# Give slave time to connect (will retry every second)
27
CREATE TABLE t3(n INT);
28
INSERT INTO t3 VALUES(1),(2);
29
sync_slave_with_master;
30
SELECT * FROM t3 ORDER BY n;
31
SELECT SUM(LENGTH(word)) FROM t1;
38
# Test if the slave SQL thread can be more than 16K behind the slave
39
# I/O thread (> IO_SIZE)
42
# we'll use table-level locking to delay slave SQL thread
43
eval CREATE TABLE t1 (n INT) ENGINE=$engine_type;
44
sync_slave_with_master;
53
# Generate 16K of relay log
57
eval INSERT INTO t1 VALUES($1);
61
SELECT COUNT(*) FROM t1;
64
# Try to cause a large relay log lag on the slave by locking t1
70
SELECT COUNT(*) FROM t1;
74
CREATE TABLE t1 (n INT);
75
INSERT INTO t1 VALUES(3456);
76
sync_slave_with_master;
81
sync_slave_with_master;