书生笔记-binlog_row_image参数解析

MySQL基于row的复制中,binlog_row_image参数决定如何记录binlog中的行图像。通常记录完整行,但可节省资源只记录必要信息。删除时记录before图像,插入时记录after图像,更新时记录两者。此参数有三种设置:FULL(默认,记录所有列),NOBLOB(仅记录识别行所需的before列和变化的after列),MINIMAL(同FULL,但不记录不必要的BLOB和TEXT列或未更改列)
摘要由CSDN通过智能技术生成

1,参数定义

 

  • For MySQL row-based replication, this variable determines how row images are written to the binary log.

对于基于row模式的复制,binlog_row_image变量决定了images是如何写入到binlog日志文件的。

  • In MySQL row-based replication, each row change event contains two images, a “before” image whose columns are matched against when searching for the row to be updated, and an “after” image containing the changes. Normally, MySQL logs full rows (that is, all columns) for both the before and after images. However, it is not strictly necessary to include every column in both images, and we can often save disk, memory, and network usage by logging only those columns which are actually required.

在基于row模式的复制,每行的改变event包含了两个image:1,before, 将要被修改的行 2,after,改变后的行信息 。

正常情况下,full row是包含了before和after的信息。然后,这不是必须要求的,只在我们需要的时候使用。

  • Note

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值