2007-05-15 11:32:33 +02:00
|
|
|
--source include/have_log_bin.inc
|
2006-11-13 17:06:45 +01:00
|
|
|
--source include/not_embedded.inc
|
2005-07-16 02:33:47 +02:00
|
|
|
--source ./include/have_federated_db.inc
|
|
|
|
|
|
|
|
source ./include/master-slave.inc;
|
|
|
|
|
|
|
|
# remote table creation
|
|
|
|
|
2007-04-17 13:41:16 +02:00
|
|
|
# We have to sync with master, to ensure slave had time to start properly
|
|
|
|
# before we stop it. If not, we get errors about UNIX_TIMESTAMP() in the log.
|
|
|
|
connection master;
|
|
|
|
sync_slave_with_master;
|
|
|
|
|
2005-07-16 02:33:47 +02:00
|
|
|
connection slave;
|
2006-11-20 21:42:06 +01:00
|
|
|
#--replicate-ignore-db=federated
|
2005-07-16 02:33:47 +02:00
|
|
|
stop slave;
|
|
|
|
|
|
|
|
--disable_warnings
|
|
|
|
# at this point, we are connected to master
|
|
|
|
DROP DATABASE IF EXISTS federated;
|
|
|
|
--enable_warnings
|
|
|
|
CREATE DATABASE federated;
|
|
|
|
|
|
|
|
connection master;
|
|
|
|
--disable_warnings
|
|
|
|
DROP DATABASE IF EXISTS federated;
|
|
|
|
--enable_warnings
|
|
|
|
CREATE DATABASE federated;
|