务上需要支持create table XXX as select * from XXX; 这种创建表的语法,但是MySQL5.7.x版本里面gtid是开启的,会报错 ERROR 1786 (HY000):Statement violates GTID consistency: CREATE TABLE ... SELECT. 官方说明:https://dev.mysql.com/doc/refman/5.7/en/replication-gtids-restrictions.html CREAT…