orchestrator简介

本文介绍了orchestrator,一个用于管理MySQL复制拓扑的工具。内容包括如何设置MySQL主从、修改主机名、安装orchestrator服务、使用基本命令,以及解决域名解析、文件下载和Linux路由问题的方法。
摘要由CSDN通过智能技术生成

github:
https://github.com/github/orchestrator/tree/master/docs

Orchestrator介绍
https://www.percona.com/blog/2016/03/08/orchestrator-mysql-replication-topology-manager/

mysql多实例    
1、初始化mysql到新的数据目录
    cd /usr/local/mysql-5.5.45;./scripts/mysql_install_db --user=mysql --datadir=/var/lib/mysql_3307
2、复制当前配置文件,修改下列参数
    cp  /etc/my.cnf  /etc/my2.cnf
    vim /etc/my2.cnf
        [mysqld]
        datadir=/var/lib/mysql_3307                                  //数据存放目录
3、复制/etc/init.d/mysqld
        cp /etc/init.d/mysqld /etc/init.d/mysqld_3307
        修改 /etc/init.d/mysqld_3307 中默认配置文件位置 Defaults_file="/etc/my2.cnf"

(1)mysql主从

grant replication slave on *.* to 'vera'@'192.168.3.146' identified by '123456';
    show master status;
    从
    stop slave;
    change master to  master_host='192.168.3.87',master_port=3307,master_user='vera', master_password='123456', master_log_file='mysql-bin.000008', master_log_pos=107;
    start slave;
    show slave status\G;

    change master to  master_host='192.168.3.146',master_port=3307,master_user='vera', master_password='123456', master_log_file='mysql-bin.000010', master_log_pos=107;
注意开放防火墙,否则连接不到3306端口
    -A INPUT -m state --state NEW -m tcp 
  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值