mysql开始binlog会影响性能吗_【MySQL】binlog缓存的问题和性能

本文讨论了MySQL在开启binlog时遇到的'max_binlog_cache_size'错误,强调了主备参数一致性的重要性。当主库写binlog成功但备库因不同配置无法复现时,可能导致问题。解决方案是调整max_binlog_cache_size至与主库一致,例如设置为10737418240字节。同时,文章解释了max_binlog_size、max_binlog_stmt_cache_size等变量的作用,并介绍了事务性与非事务性语句在binlog处理中的行为。
摘要由CSDN通过智能技术生成

之前在没有备库的情况下,遇到过more than 'max_binlog_cache_size' bytes of storage 的错误,今天在主备复制的时候又遇到了这个问题

Last_SQL_Errno: 1197

Last_SQL_Error: Worker 14 failed executing transaction '' at master log mysql-bin.050101, end_log_pos 2669492980; Could not execute Delete_rows_v1 event on table time_dispatcher_0029.ttd_task_1889; Multi-statement transaction required more than 'max_binlog_cache_size' bytes of storage; increase this mysqld variable and try again, Error_code: 1197; handler error HA_ERR_RBR_LOGGING_FAILED; the event's master log mysql-bin.050101, end_log_pos 2669492980

slave

root@(none) 10:11:38>show variables like '%binlog_%size%';

+----------------------------+----------------------+

| Variable_name | Value |

+----------------------------+----------------------+

| binlog_cache_size | 32768 |

| binlog_

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值