设为首页 加入收藏

TOP

MySQL 5.7 GTID复制到传统复制在线切换(三)
2016-12-12 08:15:13 】 浏览:467
Tags:MySQL 5.7 GTID 复制 传统 在线 切换
l-bin.000438
Exec_Master_Log_Pos: 234
Executed_Gtid_Set: 58abaa9b-73dd-11e6-9690-0050568a704b:1-16,
ebdca3fd-6eb7-11e6-b20c-0050568a704b:1-32459,
ebdca3fd-6eb7-11e6-b20c-0050568a704c:1-2
插入数据后:
Relay_Master_Log_File: mysql-bin.000438
Exec_Master_Log_Pos: 539
Executed_Gtid_Set: 58abaa9b-73dd-11e6-9690-0050568a704b:1-16,
ebdca3fd-6eb7-11e6-b20c-0050568a704b:1-32459,
ebdca3fd-6eb7-11e6-b20c-0050568a704c:1-2


master2执行:
(product)root@localhost [mdb2]> insert into mdb2.t2 select 1;
插入数据前:
Relay_Master_Log_File: mysql-bin.000187
Exec_Master_Log_Pos: 194
Executed_Gtid_Set: 58abaa9b-73dd-11e6-9690-0050568a704b:1-16,
ebdca3fd-6eb7-11e6-b20c-0050568a704b:1-32459,
ebdca3fd-6eb7-11e6-b20c-0050568a704c:1-2
插入数据后:
Relay_Master_Log_File: mysql-bin.000187
Exec_Master_Log_Pos: 499
Executed_Gtid_Set: 58abaa9b-73dd-11e6-9690-0050568a704b:1-16,
ebdca3fd-6eb7-11e6-b20c-0050568a704b:1-32459,
ebdca3fd-6eb7-11e6-b20c-0050568a704c:1-2


上面的GTID没有变化,只有pos位点有变化,说明已转换成传统复制生效。


6.更改配置文件
最后记得要更改my.cnf文件中的配置
gtid-mod=off
enforce-gtid-consistency=off


首页 上一页 1 2 3 下一页 尾页 3/3/3
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇Oracle的redo log在各场景下的恢复 下一篇MySQL 5.7传统复制到GTID复制的在..

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目