CHANGE MASTER TO
MASTER_HOST='10.10.18.10(服务器1的ip地址)',
MASTER_USER='repl',
MASTER_PASSWORD='repl123',
MASTER_LOG_FILE='mysql-bin.007289',
MASTER_LOG_POS=662625023;
#启动slave从库
start slave;
查看从库的同步状态
show slave status\G;
配置完成。
Linux公社的RSS地址:https://www.linuxidc.com/rssFeed.aspx