Mysql中查看每个IP的连接数

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

 

posted @ 2017-02-17 10:51  杨小愚  阅读(5697)  评论(0编辑  收藏  举报