more master.dump
-- 结果如下
-- Position to start replication or point-in-time recovery from
--
-- CHANGE MASTER TO MASTER_LOG_FILE='binlog.000004', MASTER_LOG_POS=1631;
--
-- Current Database: `mysql`
--
6.配置主从同步信息,将上一步的值填入下面命令中
CHANGE MASTER TO
MASTER_HOST='10.211.55.9',
MASTER_USER='repl',
MASTER_PASSWORD='repl',
MASTER_PORT=3306,
MASTER_LOG_FILE='binlog.000004',
MASTER_LOG_POS=1631,
MASTER_CONNECT_RETRY=10;
7.在从库上启动主从同步
start slave;
8.查看主从同步状态,并重点关注如下3项的正常状态
show slave status \G
***************************1.row***************************
Slave_IO_Running: Yes
Slave_SQL_Running: Yes
Seconds_Behind_Master: 0