2001-11-18 01:23:46 +01:00
|
|
|
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,);
|
2000-12-07 15:54:59 +01:00
|
|
|
connection slave;
|
2003-03-03 23:12:17 +01:00
|
|
|
#we expect STOP SLAVE to produce a warning as the slave is stopped
|
|
|
|
#(the server was started with skip-slave-start)
|
|
|
|
--disable_warnings
|
|
|
|
stop slave;
|
|
|
|
--enable_warnings
|
2000-12-08 15:11:22 +01:00
|
|
|
@r/slave-stopped.result show status like 'Slave_running';
|
2000-12-07 15:54:59 +01:00
|
|
|
connection master;
|
2003-01-06 00:48:59 +01:00
|
|
|
--disable_warnings
|
2002-08-08 02:12:02 +02:00
|
|
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
2003-01-06 00:48:59 +01:00
|
|
|
--enable_warnings
|
2000-12-07 15:54:59 +01:00
|
|
|
reset master;
|
|
|
|
connection slave;
|
|
|
|
reset slave;
|
2001-04-21 16:12:59 +02:00
|
|
|
# Clean up old test tables
|
2003-01-06 00:48:59 +01:00
|
|
|
--disable_warnings
|
2001-04-21 16:12:59 +02:00
|
|
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
2003-01-06 00:48:59 +01:00
|
|
|
--enable_warnings
|
2002-10-25 01:46:14 +02:00
|
|
|
start slave;
|
2000-12-08 15:11:22 +01:00
|
|
|
@r/slave-running.result show status like 'Slave_running';
|
2002-08-08 02:12:02 +02:00
|
|
|
|
|
|
|
# Set the default connection to 'master'
|
|
|
|
connection master;
|