杀掉MySQL连接线程的利器之pt-kill

10770阅读 2评论2014-08-27 ning_lianjie
分类:Mysql/postgreSQL

如何每10秒检查一次,杀死指定用户超过100秒的查询?
pt-kill \
--no-version-check \
--host 127.0.0.1 --port 3306 --user 'xxxxxx' --password 'xxxxxx' \
--charset utf8 \
--match-command Query \
--match-user 指定的用户名 \
--busy-time 100 \
--kill \
--victims all \
--interval 10 \
--print
常用参数说明
上一篇:How to setup a slave for replication
下一篇:没有了

文章评论