mysql error 1197 ,Multi-statement transaction required more than 'max_binlog_cache_size' bytes of st...

SELECT @@max_binlog_cache_size;

 

如果 一个 mysql 事务 需要的内存大于 max_binlog_cache_size;mysql就会抛出 Multi-statement transaction required more than 'max_binlog_cache_size' 错误。

解决办法:

SET GLOBAL max_binlog_cache_size = 4294967296;  #40G

推荐最大设置为40G,

最大可能设置为 16EB (exabytes),

转载于:https://www.cnblogs.com/huntercj/p/8921117.html

你可能感兴趣的:(mysql error 1197 ,Multi-statement transaction required more than 'max_binlog_cache_size' bytes of st...)