watch -n 1 'mysql -e "show full processlist"' -n 间隔 1秒钟 执行一次后面的命令 转载于:https://www.cnblogs.com/star4knight/p/3732330.html