Debian Codegraph @

mysql-test/suite/rpl/t/rpl_000017.test

raw
1 # ==== Purpose ====
2 #
3 # Unknown.
4 #
5 # ==== Notes ====
6 #
7 # This test uses the -slave.opt file to start the slave with
8 # --skip-slave-start.
9
10 --source include/not_windows.inc
11
12 --let $rpl_skip_start_slave= 1
13 --source include/master-slave.inc
14
15 --connection slave
16 --let $slave_datadir= `SELECT @@datadir`
17
18 --remove_file $slave_datadir/master.info
19 --write_file $slave_datadir/master.info
20 master-bin.000001
21 4
22 127.0.0.1
23 replicate
24 aaaaaaaaaaaaaaab
25 $MASTER_MYPORT
26 1
27 0
28 EOF
29
30 connection master;
31 grant replication slave on *.* to replicate@localhost identified by 'aaaaaaaaaaaaaaab';
32 grant replication slave on *.* to [email protected] identified by 'aaaaaaaaaaaaaaab';
33 connection slave;
34 --source include/start_slave.inc
35
36 connection master;
37 create table t1(n int);
38 insert into t1 values(24);
39 sync_slave_with_master;
40 select * from t1;
41 connection master;
42 drop table t1;
43 delete from mysql.user where user="replicate";
44
45 # End of 4.1 tests
46 --source include/rpl_end.inc
47