mysql kill thread

jrhdpt02:/root# mysql -uroot -p'x' -e "show processlist" | grep query | grep local
Warning: Using a password on the command line interface can be insecure.
177550	query_all	localhost	NULL	Sleep	55		NULL


jrhdpt02:/root# mysql -uroot -p'x' -e "show processlist" | grep query | grep local
Warning: Using a password on the command line interface can be insecure.
177550	query_all	localhost	NULL	Sleep	70		NULL
177556	query_all	localhost	NULL	Sleep	2		NULL


mysql> show databases;
ERROR 2006 (HY000): MySQL server has gone away
No connection. Trying to reconnect...
Connection id:    177575
Current database: *** NONE ***

原文地址:https://www.cnblogs.com/hzcya1995/p/13351120.html