mirror of
https://gitee.com/kennylee/docker.git
synced 2024-12-04 04:48:39 +08:00
5 lines
274 B
SQL
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;
|