当前位置:Gxlcms > PHP教程 > mysql提示1785的错误

mysql提示1785的错误

时间:2021-07-01 10:21:17 帮助过:8人阅读

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.

单独执行存储过程时提示这个错误,百度了下,说是混用myisam 和inodb ,以前也是这么混用的没有问题,也没有说的临时表
请教一下大家可能是什么原因,


回复讨论(解决方案)

你把 MySQL 降到 5.5 以下,就不出错了

高版本的mysql会报错

谢谢大家热心回答 ,问题解决了,但是不是很明白, 在一个事务中,对同一个表 先做查询,后又更新, 把更新的删除了,就不报这个错误了

人气教程排行