码迷,mamicode.com
首页 > 数据库 > 详细

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

时间:2017-05-07 14:55:52      阅读:1368      评论:0      收藏:0      [点我收藏+]

标签:云主机   sql   ...   tor   trying   state   led   sed   stat   

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 storage

标签:云主机   sql   ...   tor   trying   state   led   sed   stat   

原文地址:http://www.cnblogs.com/MYSQLZOUQI/p/6820688.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!