简体   繁体   English

如何跳过 MySQL 中特定通道的 GTID 事务?

[英]How to skip GTID transaction for a particular channel in MyQL?

We can skip a error in GTID based replication by following steps:我们可以通过以下步骤跳过基于 GTID 的复制中的错误:

STOP SLAVE;
set GTID_NEXT='SERVER_UUID:LAST_TRANSACTION_NUMBER+1' ;
BEGIN; COMMIT; SET GTID_NEXT="AUTOMATIC";
START SLAVE;

But if a replication is running with channel information, than how to skip the transaction for a particular channel ?但是,如果复制正在使用通道信息运行,那么如何跳过特定通道的事务?

We can give "for channel" keyword in stop slave and start slave .我们可以在stop slavestart slave 中给出“for channel”关键字。 But how to skip transaction for a particular channel, like in set GTID_NEXT command or what ?但是如何跳过特定通道的事务,例如 set GTID_NEXT 命令或什么?

In a replication topology GTID is a global unique identified for any transaction, therefore if transaction is required to skip, specifying channel becomes irrelevant here.在复制拓扑中,GTID 是为任何事务标识的全局唯一标识,因此如果需要跳过事务,则此处指定通道变得无关紧要。 It is similar to MySQL Replication Filters [MySQL 5.7] are global , or in other words, will be applied for all running replication channels它类似于 MySQL 复制过滤器 [MySQL 5.7] are global ,或者换句话说,将应用于所有正在运行的复制通道

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

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