master-slave.inc 525 Bytes
Newer Older
1
# Replication tests need binlog
2 3
#
# $skip_slave_start  If true, the slave will not be started
unknown's avatar
unknown committed
4
source include/have_log_bin.inc;
5

6 7 8 9
connect (master,127.0.0.1,root,,test,$MASTER_MYPORT,);
connect (master1,127.0.0.1,root,,test,$MASTER_MYPORT,);
connect (slave,127.0.0.1,root,,test,$SLAVE_MYPORT,);
connect (slave1,127.0.0.1,root,,test,$SLAVE_MYPORT,);
10 11

-- source include/master-slave-reset.inc
12

13 14 15 16 17
if (!$skip_slave_start) {
  connection master;
  sync_slave_with_master;
}

18 19
# Set the default connection to 'master'
connection master;