一 简介:今天咱们来聊聊如何定位以及执行完的大事务

二 目的:通过分析binlog脚本来定位执行的大事务

三 分析脚本

mysqlbinlog --base64-output=decode-rows -vv --start-datetime="" --stop-datetime="" binlog | awk \
'BEGIN {x; s_count=0; flag=0;bf=0;bg=0;} } '

四 分析结果

 [Transaction total : 6 Insert(s) : 6 Update(s) : 0 Delete(s) : 0 Xid : 216917361 period : 0   period就是SQL执行时间,按照period排序,定位大事务即可

相关文章:

  • 2021-04-05
  • 2021-09-28
  • 2021-06-14
  • 2022-12-23
  • 2021-12-26
  • 2022-12-23
  • 2021-04-30
  • 2021-12-09
猜你喜欢
  • 2022-12-23
  • 2021-10-25
  • 2021-09-25
  • 2021-08-16
  • 2022-02-09
  • 2021-08-03
  • 2021-10-28
相关资源
相似解决方案