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

时间:2017-05-07 14:55:52   收藏:0   阅读:1368

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

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!