当前位置:网站首页>Replication监控及自动故障切换
Replication监控及自动故障切换
2022-08-08 11:07:00 【51CTO】

首先在相应的机器上增加授权
GRANT REPLICATION SLAVE ON *.* TO 'repl'@'192.168.1.108' IDENTIFIED BY 'repl';
GRANT REPLICATION SLAVE ON *.* TO 'repl'@'192.168.1.109' IDENTIFIED BY 'repl';
GRANT REPLICATION SLAVE ON *.* TO 'repl'@'192.168.1.110' IDENTIFIED BY 'repl';


report-host=192.168.1.110
master-info-repository=TABLE
relay-log-info-repository=TABLE

mysqlfailover --master=replm:[email protected] --discover-slaves-login=replm:replm --force

边栏推荐
- LeetCode_487_最大连续1的个数Ⅱ
- 键值数据库中可以对值进行查询嘛?
- TCP通信
- Redis是持久化键值数据库嘛?
- 模式识别 学习笔记:第八章 特征提取
- gaussdb数据库连接报错:psycopg2.OperationalError: server closed the connection unexpectedly
- How to uniformly handle error exceptions in embedded C programming?
- 微服务负载均衡器LoadBalancer实战
- 关系数据库是怎么确定关系表中的数据的呢?
- PWA 应用 Service Worker 缓存的一些可选策略和使用场景
猜你喜欢

Jingdong, zhang, director of the cloud wireless products division treasure jingdong cloud wireless treasure close relationship with the open source | the great god, open source BUFF gain strategy revi

深度学习网络结构图绘制工具及方法

在SAP分析云里根据业务数据绘制词云(Word Cloud)

模式识别 学习笔记:第七章 特征选择

Machine learning model too slow?Look at Intel (R) extension to accelerate

关于那些我们都听过的营销工具—优惠券

PG核心篇--物理存储结构

目标检测中的Classificition Loss

NLP和CV中的Local和Global建模

day02 -DOM - advanced events (register events, event listeners, delete events, DOM event flow, event objects, prevent default behavior, prevent event bubbling, event delegation) - commonly used mouse
随机推荐
How to uniformly handle error exceptions in embedded C programming?
关于振弦采集模块及采集仪振弦频率值准确率的问题
Postman使用简单演示
学习与尝试 --> 事件风暴
shell之常用小工具
Alibaba微服务组件Nacos注册中心
萤石、小米对垒智能摄像头
使用类似搭积木的低代码开发方式进行 SAP API 开发
NoSQL有哪些特点呢?
Leetcode 617. 合并二叉树
微服务负载均衡器LoadBalancer实战
ReentrantLock原理,ReentrantLock和synchronized区别
分布式系统设计策略
上周热点回顾(8.1-8.7)
About the Celery service report under win Process 'Worker' exited with 'exitcode 1' [duplicate]
【kali-权限提升】(4.2.4)社会工程学工具包:远控木马使用、设置、利用
动图图解!既然IP层会分片,为什么TCP层也还要分段?
LeetCode每日一题--有序队列(整理最小表示法)
转转商品系统高并发实战(数据篇)
部署spark2.2集群(standalone模式)