08. pt-find


vim pt-find.cnf

host=192.168.100.101
port=3306
user=admin
password=admin

pt-find --config pt-find.cnf db01 --tablesize +1k --noquote --printf "%D.%N %S %T\n" | sort -rn | pt-align

db01.t01 5 16384
db01.pt_deadlocks 2 16384

%S 行数
%T 单位k

猜你喜欢

转载自www.cnblogs.com/cyberbit/p/pt-find.html