mysql error:@@GLOBAL.ENFORCE_GTID_CONSISTENCY = 1,updates to non-transactional tables can only be done in either autocommitted statements or single-statement transactions

error信息如下:
@@GLOBAL.ENFORCE_GTID_CONSISTENCY = 1, 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.

解决:

查看开发脚本,一个脚本的单个事务中存在以下内容:

insert插入到innodb表,update 更新的是mysaim表 。

联系开发sql拆分两个脚本 分开提交,问题解决。

猜你喜欢

转载自www.cnblogs.com/wsn-only/p/11270142.html