[root@bass ca]# mysqlbinlog --short-form mysql-bin.000008 |egrep -v "^(/|SET|BEGIN|COMMITER|#|COMMIT)" >a.log [root@bass ca]# mysqlbinlog --short-form mysql-bin.000008 |egrep -v "(^/|^SET|^BEGIN|^COMMITER|^#|^COMMIT)" >b.log [root@bass ca]# diff a.log b.log#上面的两种方法效果一样!!
#其中--short-form,可用"-s"代替!!!