mysql锁表解决命令,Mysql show processlist 详解
最近排查一些MySQL的问题,会经常用到 show processlist,所以在这里把这个命令总结一下,做个备忘,以备不时只需。首先是几条常用的SQL。1、按客户端 IP 分组,看哪个客户端的链接数最多select client_ip,count(client_ip) as client_num from (select substring_index(host,’:’ ,1) as client_ip from information_schema.processlist ) as connect