码迷,mamicode.com
首页 > 数据库 > 详细

mysql-multi source replication 配置

时间:2017-03-11 23:46:12      阅读:264      评论:0      收藏:0      [点我收藏+]

标签:use   replicat   blog   log   bsp   thread   class   start   mysq   

1、关键步骤

change master to    
    master_host=172.16.192.201,
    master_port=3306,
    master_user=repl,
    master_password=123456,
    master_auto_position=1
    for channel master201;

start slave IO_THREAD for channel master201;
start slave SQL_THREAD for channel master201;

change master to    
    master_host=172.16.192.202,
    master_port=3306,
    master_user=repl,
    master_password=123456,
    master_auto_position=1
    for channel master202;

start slave IO_THREAD for channel master202;
start slave SQL_THREAD for channel master202;

 

mysql-multi source replication 配置

标签:use   replicat   blog   log   bsp   thread   class   start   mysq   

原文地址:http://www.cnblogs.com/JiangLe/p/6536399.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!