GTID为Mysql复制打开时的联合表错误

时间:2018-11-02 15:32:18

标签: mysql database-replication mysql-5.7 federated gtid

我对mysql复制有问题。

我有master,slave和另一个独立的db,并且master和slave上的forced_gtid_consistency = ON。

我的测试用例:

BEGIN;
USE demo;
INSERT INTO demo.log_master(msg)value('demo2');
CALL sp_log_independent('test14');
ROLLBACK;
//commit

当我尝试在事务中插入联合表时,出现如下错误。

mysql> call sp_log_independent('test14');
ERROR 1785 (HY000): Statement violates GTID consistency: Updates to non-transactional tables can only be done in either autocommitted statements or single-statement transactions, and never in the same statement as updates to transactional tables.
mysql> 

我想记录所有事物,无论是在事务中还是在非事务中。我可以排除要复制的联合表吗?还是如何强制它进行复制?

0 个答案:

没有答案