【mysql】max_binlog_cache_size错误

来源:互联网 发布:感人 知乎 编辑:程序博客网 时间:2024/05/01 00:39
Multi-statement transaction required more than ‘max_binlog_cache_size’bytes of storage错误:
 
二进制日志缓冲区(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_sizebytes of storage”。







0 0