mysql报错Multi-statement transaction required more than 'max_binlog_cache_size' bytes of stora

Posted 技术为王

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mysql报错Multi-statement transaction required more than 'max_binlog_cache_size' bytes of stora相关的知识,希望对你有一定的参考价值。

mysql报错Multi-statement transaction required more than ‘max_binlog_cache_size‘ bytes of storage

 

在执行create table  xx  as  select xx的时候

或者在执行

tpcc-mysql的tpcc_load 的时候

都会遇到这个错误

 

1534, HY000, Writing one row to the row-based binary log failed
Retrying ...

1197, HY000, Multi-statement transaction required more than ‘max_binlog_cache_size‘ bytes of storage; increase this mysqld variable and try again
Retrying ...

 

 

因为使用的是腾讯云主机,1核1G内存,内存不足导致的binlog cache size不够不能写入binlog,导致语句无法执行

 

解决办法:

修改my.cnf,增大binlog_cache_size和max_binlog_cache_size参数的值

binlog_cache_size = 20M
max_binlog_cache_size = 100M

 

以上是关于mysql报错Multi-statement transaction required more than 'max_binlog_cache_size' bytes of stora的主要内容,如果未能解决你的问题,请参考以下文章

今天备份表数据遇到一个错误 Error CODE: 1197 Multi-statement TRANSACTION required more THAN 'max_binlog_cache

springboot druid 数据库批量更新错误 multi-statement not allow

SpringBoot+Mybatis+Druid批量更新 multi-statement not allow异常

Multi-statement transaction required more than 'max_binlog_cache_size' bytes of storage; inc

mySql连接报错

js 单引号嵌套双引号报错?