summaryrefslogtreecommitdiffstats
path: root/mysql-test/suite/rpl/r/rpl_set_statement_default_master.result
blob: 46f5a7c927e2f197b2a207a6b85de984dc103b41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
include/master-slave.inc
[connection master]
connection slave;
include/stop_slave.inc
RESET SLAVE ALL;
# Does not work for CHANGE MASTER:
SET STATEMENT default_master_connection = 'm1' FOR 
CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=MASTER_MYPORT, MASTER_USER='root';
#
# The first field, Connection_name, should say 'm1'...
#
Connection_name = 'm1'
RESET SLAVE ALL;
CHANGE MASTER 'm1' TO MASTER_HOST='127.0.0.1', MASTER_PORT=MASTER_MYPORT, MASTER_USER='root';
SET STATEMENT default_master_connection = 'm1' FOR START SLAVE;
set default_master_connection = 'm1';
include/wait_for_slave_to_start.inc
stop slave;
include/wait_for_slave_to_stop.inc
reset slave all;
set default_master_connection = '';
disconnect slave;
connection default;