Debian Codegraph @

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

raw
1 --source include/master-slave.inc
2
3 --connection slave
4
5 --source include/stop_slave.inc
6 RESET SLAVE ALL;
7
8 --echo # Does not work for CHANGE MASTER:
9 --replace_result $MASTER_MYPORT MASTER_MYPORT
10 eval SET STATEMENT default_master_connection = 'm1' FOR
11 CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=$MASTER_MYPORT, MASTER_USER='root';
12
13
14 --echo #
15 --echo # The first field, Connection_name, should say 'm1'...
16 --echo #
17 --let $status_items= Connection_name
18 --source include/show_all_slaves_status.inc
19 #query_vertical SHOW ALL SLAVES STATUS;
20
21
22 RESET SLAVE ALL;
23
24 --replace_result $MASTER_MYPORT MASTER_MYPORT
25 eval CHANGE MASTER 'm1' TO MASTER_HOST='127.0.0.1',
26 MASTER_PORT=$MASTER_MYPORT, MASTER_USER='root',
27 MASTER_SSL_VERIFY_SERVER_CERT=0;
28 SET STATEMENT default_master_connection = 'm1' FOR START SLAVE;
29
30 set default_master_connection = 'm1';
31 --source include/wait_for_slave_to_start.inc
32 stop slave;
33 --source include/wait_for_slave_to_stop.inc
34 reset slave all;
35 set default_master_connection = '';
36 --disconnect slave
37 --connection default