mysql error 1197 ,Multi-statement transaction required more than 'max_binlog_cache_size' bytes of storage; increase this mysqld variable and try again 解决办法

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),

猜你喜欢

转载自www.cnblogs.com/huntercj/p/8921117.html