一条霸气的分析binlog的命令

/u01/percona55_debug/bin/mysqlbinlog -vv   mysql-bin.000039    |  \
   grep -i -e "^update" -e "^insert" -e "^delete" -e "^replace" -e "^alter"  | \
   cut -c1-100 | tr '[A-Z]' '[a-z]' |  \
   sed -e "s/\t/ /g;s/\`//g;s/(.*$//;s/ set .*$//;s/ as .*$//" | sed -e "s/ where .*$//" |  \
   sort | uniq -c | sort -nr 

你可能感兴趣的:(一条霸气的分析binlog的命令)