federated.inc 693 Bytes
Newer Older
1
--source include/have_log_bin.inc
2
--source include/not_embedded.inc
3 4 5 6 7 8
--source ./include/have_federated_db.inc

source ./include/master-slave.inc;

# remote table creation

9 10 11 12 13
# 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;

14
connection slave;
unknown's avatar
unknown committed
15
#--replicate-ignore-db=federated
16 17 18 19 20 21 22 23 24 25 26 27 28
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;