Statement violates GTID consistency: Updates to non-transactional tables

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.

解决

在my.cnf 中将

gtid_mode = ON
enforce_gtid_consistency = 1

改为

gtid_mode = OFF
enforce_gtid_consistency = 0

要两个参数一起改,然后重启mysql,问题解决

猜你喜欢

转载自blog.csdn.net/qq_42224683/article/details/113309193
今日推荐