GreatSQL社区

搜索

[已解决] TPCH 1T, lineitem 导入报错 "max_binlog_cache_size" 不足

99 1 2024-3-4 08:57
如标题,报错信息如下:



ERROR 1197 (HY000): Multi-statement transaction required more than 'max_binlog_cache_size' bytes of storage; increase this mysqld variable and try again

机器一共190G内存,这个值为150G。

解决思路:
1, max_binlog_cache_size继续放大;  问题是数据多,如果还是不够,等待周期会很长。
2,能不能把binlog关了,会不会有其他影响??例如log_bin = off
全部回复(1)
yejr 2024-3-4 09:18:17
可以的,在测试环境中要一次性导入这么大量数据,可以先把binlog关闭。
如果是在生产环境无法关闭binlog,可以无限加大max_binlog_cache_size,其值上限是 18446744073709551615
cse_engineer

10

主题

0

博客

32

贡献

注册会员

Rank: 2

积分
53

助人为乐(铜)勤学好问(铜)

合作电话:010-64087828

社区邮箱:greatsql@greatdb.com

社区公众号
社区小助手
QQ群
GMT+8, 2024-4-29 00:40 , Processed in 0.014259 second(s), 9 queries , Redis On.
快速回复 返回顶部 返回列表