mysqlbinlog -v -v --base64-output=decode-rows
–start-datetime=‘2018-04-03 02:47:22’ --stop-datetime=‘2018-04-03 02:48:26’ /data/mysql/mysql-bin.003446 | awk
‘/###/{if($0~/UPDATE|INSERT|DELETE/)count[NF]++}END{for(i in
count)print i,"\t",count[i]}’ | column -t | sort -k3nr | more
DELETEa_xxx.xxx_acct_flow 565330
DELETEa_xxx.xxx_bfj_flow 23595
DELETEa_xxx.xxx_loan_detail 24156
DELETEa_xxx.xxx_pay_log 18475
INSERTa_xxx.xxx_acct_flow_his 576265
INSERTa_xxx.xxx_bfj_flow_his 23829
INSERTa_xxx.xxx_loan_detail_his 24539
INSERTa_xxx.xxx_pay_log_his 18709
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




