資料庫升級到mysql5.6遇到的資料表ENGINE問題

yf.z發表於2015-01-16

某資料表更新時出現一下異常:

java.sql.SQLException: 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


排查後發現該表的引擎為MyISAM改為InnoDB即可

相關文章