mysql错误1785
今天调试一个问题的时候,报错
General error: 1785 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
原来是一个表非InnoDB引擎,修改引擎为InnoDB就行了,好像是Mysql5.6之后一个事务如果牵涉多表的修改,必须全部为支持事务的引擎。

浙公网安备 33010602011771号