能不能利用复制报错,让从库停在同一个复制的位置上?
报错 利用 不能 复制 位置 同一个 从库
2023-09-27 14:26:42 时间
情况模拟:
在主库上创建一个表:
create table test_flag(id int);
在从库上:
drop table test_flag;
主库上:
drop table test_flag;
从库都停在:drop table,找不到表的报错,你会惊奇的发现,所有的从库都停在同一个GTID位置,同样的Relay_master_log_file,exec_master_log_pos。
停在同一个点的意义:
主库M需要下线维护,M->(S1,S2) 复制架构要变成M->S1->S2复制架构,在线切换。
这时候S1和S2理论上数据是一致的。
相关文章
- SpringCloud启动报错ClassNotFoundException: named/NamedContextFactory /environment/EnvironmentChangeEvent
- 使用IntelliJ工具打包kotlin为bat文件运行报错 Exception in thread "main" java.lang.NoClassDefFoundError
- 安装nginx报错configure: error:the HTTP gzip module requires the zlib library.
- SpringBoot报错:Content type 'text/plain;charset=UTF-8' not supported
- error: (-215:Assertion failed) anchor.inside(Rect(0, 0, ksize.width, ksize.height)) OpenCV报错解决
- weblogic启动受管服务器报错Authentication for user weblogic denied (weblogic 11g 域账号密码不生效的解决方法)
- Gradle报错:KotlinReflectionNotSupportedError: Kotlin reflection implementation is not found at runtime
- 【错误记录】Google Play 上架报错 ( 此版本不符合 Google Play 关于提供 64 位版本应用的要求。| 如果提供 x86 架构动态库则必须提供 x86_64 架构的动态库 )
- dubbo spring pom文件报错:提示no declaration can be found for element 'dubbo:service'.
- 【代码报错】 PHP运行出现Notice : Use of undefined constant 完
- Hbuilder——报错The keyword 'export' is reserved