MySQL升5.6引发的问题

昨天项目MySQL数据库从5.5升级到5.6,导致部分表无法进行更新操作,报如下错误:

When @@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.

MySQL官方给出的解决办法:

“updates to tables using nontransactional storage engines such as MyISAM cannot be made in the same statement or transaction as updates to tables using transactional storage engines such as InnoDB.” 

https://dev.mysql.com/doc/refman/5.6/en/replication-gtids-restrictions.html

参考文章:

http://blog.webyog.com/2014/05/12/suddenly-myisam-became-transaction-aware

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。