Mysql中查看每个IP的连接数


select SUBSTRING_INDEX(host,':',1) as ip , count(*) from information_schema.processlist group by ip;

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