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
时间: 2024-10-09 15:08:03