summaryrefslogtreecommitdiff
path: root/mysql-test/include/master-slave.inc
blob: 8270c0e46f6188093bbae3a57aa50690343fd06c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
connect (master,localhost,root,,test,0,var/tmp/mysql.sock);
connect (master1,localhost,root,,test,0,var/tmp/mysql.sock);
connect (slave,localhost,root,,test,0,var/tmp/mysql-slave.sock);
connect (slave1,localhost,root,,test,0,var/tmp/mysql-slave.sock);
connection slave;
!slave stop;
@r/slave-stopped.result show status like 'Slave_running';
connection master;
reset master;
connection slave;
reset slave;
slave start;
@r/slave-running.result show status like 'Slave_running';