mysql查看正在运行的进行的线程show processlist,并找出执行时间特别长的线程,查看mysql链接数,kill线程
1、按客户端IP分组,看哪个客户端的链接数最多selectclient_ip,count(client_ip)asclient_numfrom(selectsubstring_index(host,':',1)asclient_ipfrominformation_schema.processlist)asconnect_infogroupbyclient_iporderbyclient_numde