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,问题解决

你可能感兴趣的:(Linux,问题集,mysql,linux,java)