简体   繁体   English

MySQL多个GTID执行的GTID集

[英]MySQL multiple GTID Executed GTID set

I believe I have an issue of sorts with MySQL Replication on the slaves. 我相信奴隶上的MySQL复制存在一些问题。 Instead of there being one clean GTID under 'Executed GTID Set' there are multiple GTIDs. 在“执行的GTID集”下没有一个干净的GTID,而是多个GTID。

Retrieved_Gtid_Set: 54206435-24c7-11e5-bd59-1458d055bee8:354806-354826
Executed_Gtid_Set: 54206435-24c7-11e5-bd59-1458d055bee8:1-354826, cd975336-24c7-11e5-bd5c-1458d04f9808:1-24

I've tried a slave reset all but this doesn't seem to clear it. 我已经尝试了所有从属重置,但这似乎无法清除。

Has anyone seen this before? 谁看过这个吗? What might be the best way of resolving this? 解决这个问题的最佳方法是什么?

Thanks in advance 提前致谢

There's nothing to solve here. 这里没有什么要解决的。 These are just GTIDs of different servers. 这些只是不同服务器的GTID。

The first part of a GTID is the UUID (unique universal ID, or something like that, IIRC). GTID的第一部分是UUID(唯一的通用ID,或类似的IIRC)。

54206435-24c7-11e5-bd59-1458d055bee8:354806-354826
<........host......................>:<...GTIDs...>

I'd guess, that these are GTIDs from the master and the localhost in your executed GTID set. 我猜想,这些是来自您执行的GTID集中的主机和本地主机的GTID。

When you do show slave status\\G on the slave there's also a line like this: 当您在show slave status\\Gshow slave status\\G时,也将显示以下行:

Master_UUID: ee624d91-76da-11e4-8f3a-ecf4bbce03bc

which tells you the UUID of the master. 告诉您主机的UUID。 On the master you can do 在主人上你可以做

root@localhost:(none) > show slave hosts;
+-----------+------+------+-----------+--------------------------------------+
| Server_id | Host | Port | Master_id | Slave_UUID                           |
+-----------+------+------+-----------+--------------------------------------+
|         2 |      | 3306 |         1 | c5ca7103-2eb7-11e5-be29-0050569b085a |
+-----------+------+------+-----------+--------------------------------------+

In summary, everything's normal. 总而言之,一切正常。 These are most likely GTIDs from your master and some statements you executed on the slave. 这些很可能是来自您的主服务器的GTID,以及您在从服务器上执行的某些语句。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM