首页 > 系统服务 > 详细

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

时间:2016-03-16 19:33:48      阅读:189      评论:0      收藏:0      [点我收藏+]

当把文件导入到数据库或主从同步较大数据的时候 遇到这这个问题 错误信息:

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


解决方法如下:


cat /etc/my.cnf

将max_binlog_cache_size对应调整,重启mysql服务即可。



说明:
二进制日志缓冲区(Binlog Buffer):二进制日志缓冲区主要用来缓存由于各种数据变更操做所产生的 Binary Log 信息。为了提高系统的性能,MySQL 并不是每次都是将二进制日志直接写入 Log File,而是先将信息写入 Binlog Buffer 中,当满足某些特定的条件(如 sync_binlog参数设置)之后再一次写入 Log File 中。我们可以通过 binlog_cache_size 来设置其可以使用的内存大小,同时通过 max_binlog_cache_size 限制其最大大小(当单个事务过大的时候 MySQL 会申请更多的内存)。当所需内存大于 max_binlog_cache_size 参数设置的时候,MySQL 会报错:“Multi-statement transaction required more than ‘max_binlog_cache_size’ bytes of storage”。

本文出自 “运维者说:从菜鸟到老鸟” 博客,请务必保留此出处http://liuqunying.blog.51cto.com/3984207/1751687

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

原文:http://liuqunying.blog.51cto.com/3984207/1751687

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!