当前位置:网站首页>Debezium系列之:记录从库服务器挂掉后binlog文件无法恢复,任务切换到主库并保证数据不丢失的方法
Debezium系列之:记录从库服务器挂掉后binlog文件无法恢复,任务切换到主库并保证数据不丢失的方法
2022-07-26 23:53:00 【目标博客专家】
Debezium系列之:记录从库服务器挂掉后binlog文件无法恢复,任务切换到主库并保证数据不丢失的方法
一、背景
- 数据库从库服务器挂掉,数据库从库binlog文件无法恢复,数据库从库恢复后,由于无法找到挂掉前的binlog文件,debezium connector挂掉无法恢复了
- 出现的报错:Could not find existing binlog information while attempting schema only recovery snashot
- 数据库从库恢复后,又开始同步主库数据,但是从库挂掉到恢复的这段时间会造成数据丢失,因此数据库从库挂掉后,debezium任务可以第一时间切换到主库,切换的过程也会丢失部分数据,因此需要手动设置binlog文件和位置,从而保证数据不丢失
二、获取主库的binlog文件名和位点
SHOW MASTER STATUS;
<边栏推荐
- 快速排序(Quick sort)
- JMeter下载安装
- #博客大赛# 斗胆尝试浅入门之BAC
- 砺夏行动|源启数字化:既有模式,还是开源创新?
- Mysql 5.7 取分组第一条
- uni-app上自定义微信小程序的tabbar
- I wish you a happy Chinese Valentine's day and invite you to read the source code together
- As for the pit saved by serialized variables, the data added with indexer cannot be serialized
- Little sister's notes: how do I learn simple source code to expand my horizons
- C语言程序的编译(预处理)下
猜你喜欢

c语言:深度学习递归

用swiper分类图标

Little sister's notes: how do I learn simple source code to expand my horizons

Why do people like to rank things
![[brother Yang takes you to play with the linear table (III) - two way linked list]](/img/64/5367ff4fb6797565cb1f9e1a8aee4e.png)
[brother Yang takes you to play with the linear table (III) - two way linked list]

白盒测试案例设计(我爷爷都能看懂)

Redis五种基本数据结构

C语言程序的编译(预处理)下

Interrupt, signal, system call

面试突击68:为什么 TCP 需要 3 次握手?
随机推荐
Interrupt, signal, system call
中断、信号、系统调用
Turn: YuMinHong: what hinders your growth is yourself
动态设置小程序swiper的高度
LeetCode->二分查找打卡(三)
The latest multi-threaded & highly concurrent learning materials, interview confidence
使用注解方式实现 Redis 分布式锁
Uni app wechat applet search keywords are displayed in red
「软件测试」包装简历从这几点出发,直接提升通过率
Invalid target distribution: solution for 17
消息队列学习 -- 概念
信息收集-端口扫描工具-Nmap使用说明
通达信开户安全么
从初级程序员到架构师学习路线+配套学习资源完整版
Go language slow start - package
多线程的具体使用
C语言程序的编译上
Multipoint bidirectional republication and routing strategy topology experiment
见证中国网安力量 “解码2022中国网安强星”即将启航
[after this article, learning the linked list is a smooth way]