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