转自:

http://blog.chinaunix.net/uid-16844903-id-4442030.html
http://blog.chinaunix.net/uid-31396856-id-5768435.html

 

经典用法
pt-kill \
--no-version-check \
--host 192.168.1.XX --port 3306 --user 'root' --password '111111' \
--charset utf8 \
--match-command Query \
--match-user USER1 \
--busy-time 10 \
--kill \
--victims all \
--interval 2 \
--print \
--pid=/tmp/ptkill.pid \
--log=/home/pt-kill.log

相关文章:

  • 2022-12-23
  • 2021-12-31
  • 2021-07-30
  • 2022-12-23
  • 2021-12-29
  • 2022-12-23
  • 2022-12-23
  • 2022-02-01
猜你喜欢
  • 2021-07-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-26
相关资源
相似解决方案