2008-07-09 14:34:00 +02:00
|
|
|
# Reset the master and the slave to start fresh.
|
|
|
|
#
|
|
|
|
# It is necessary to execute RESET MASTER and RESET SLAVE on both
|
|
|
|
# master and slave since the replication setup might be circular.
|
|
|
|
#
|
|
|
|
# Since we expect STOP SLAVE to produce a warning as the slave is
|
|
|
|
# stopped (the server was started with skip-slave-start), we disable
|
|
|
|
# warnings when doing STOP SLAVE.
|
|
|
|
|
2006-05-31 19:21:52 +02:00
|
|
|
connection slave;
|
|
|
|
--disable_warnings
|
|
|
|
stop slave;
|
2008-04-01 14:40:23 +02:00
|
|
|
source include/wait_for_slave_to_stop.inc;
|
2006-05-31 19:21:52 +02:00
|
|
|
--enable_warnings
|
|
|
|
connection master;
|
|
|
|
--disable_warnings
|
|
|
|
--disable_query_log
|
|
|
|
use test;
|
|
|
|
--enable_query_log
|
|
|
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
|
|
|
--enable_warnings
|
|
|
|
reset master;
|
2008-07-09 14:34:00 +02:00
|
|
|
--disable_query_log
|
|
|
|
reset slave;
|
|
|
|
--enable_query_log
|
2006-05-31 19:21:52 +02:00
|
|
|
connection slave;
|
|
|
|
reset slave;
|
|
|
|
# Clean up old test tables
|
|
|
|
--disable_warnings
|
|
|
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
|
|
|
--enable_warnings
|
2008-07-15 12:01:54 +02:00
|
|
|
--disable_query_log
|
|
|
|
reset master;
|
|
|
|
--enable_query_log
|
2006-05-31 19:21:52 +02:00
|
|
|
start slave;
|
2008-04-01 14:40:23 +02:00
|
|
|
source include/wait_for_slave_to_start.inc;
|