docker/mysql/replication/slave-backup/schema.sql
2017-07-27 17:02:44 +08:00

5 lines
274 B
SQL

CREATE DATABASE IF NOT EXISTS `test` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
CHANGE MASTER TO MASTER_HOST='172.16.10.1',MASTER_USER='slave_user', MASTER_PASSWORD='111111', MASTER_LOG_FILE='mysql-bin.000001', MASTER_LOG_POS=154;
START SLAVE;
show slave status\G;