mysql(mariadb) binlog 分析加强版脚本
首先感谢mysql的运维内参一书的大神在原有功能的基础上增加2个功能1.打印每个事务的大小,单位byte2.如果遇到load data操作,醒目提示#!/bin/bashcat $1|awk \'BEGIN {xid="null";s_type=""; stm="";endtm="";intsta=0;inttal=0;s_count=0;count=0;insert_count=0;update_count=0;delete_count=0;flag=0;bf=0;period=0;
原创
2020-08-07 17:28:47 ·
172 阅读 ·
0 评论