暂无图片
update 时 mysql的binlog里没有记录
我来答
分享
霸王别姬
2020-07-29
update 时 mysql的binlog里没有记录
SET TIMESTAMP=1595950235/*!*/;
BEGIN
/*!*/;
# at 317902497
#200728 23:30:35 server id 6  end_log_pos 317902580     Table_map: `ods`.`mdm_court_notice` mapped to number 197
# at 317902580
#200728 23:30:35 server id 6  end_log_pos 317910487     Write_rows: table id 197
# at 317910487
#200728 23:30:35 server id 6  end_log_pos 317918083     Write_rows: table id 197
# at 317918083
#200728 23:30:35 server id 6  end_log_pos 317925840     Write_rows: table id 197
# at 317925840
#200728 23:30:35 server id 6  end_log_pos 317933694     Write_rows: table id 197
# at 317933694
#200728 23:30:35 server id 6  end_log_pos 317935981     Write_rows: table id 197
# at 317935981
#200728 23:30:35 server id 6  end_log_pos 317938737     Update_rows: table id 197
# at 317938737
#200728 23:30:35 server id 6  end_log_pos 317945888     Write_rows: table id 197
# at 317945888
#200728 23:30:35 server id 6  end_log_pos 317953942     Update_rows: table id 197
# at 317953942
#200728 23:30:35 server id 6  end_log_pos 317960799     Update_rows: table id 197
# at 317960799
#200728 23:30:35 server id 6  end_log_pos 317967203     Update_rows: table id 197
# at 317967203
#200728 23:30:35 server id 6  end_log_pos 317975038     Update_rows: table id 197
复制
我来答
添加附件
收藏
分享
问题补充
1条回答
默认
最新
Cui Hulong

这个binlog显示内容是 一个事务包含很多sql 语句。
比如 :
begin
insert 。。。
insert 。。。
commit
还有load 批量导入数据 等方式。

这样导致一个事务非常大,建议改成1000条 提交,不要把所以事务捆在一起。

暂无图片 评论
暂无图片 有用 0
打赏 0
回答交流
Markdown


请输入正文
提交
问题信息
请登录之后查看
邀请回答
暂无人订阅该标签,敬请期待~~