Mysql中查看每个IP的连接数

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

  

posted @ 2018-12-19 10:15  bohaoist  阅读(539)  评论(0编辑  收藏  举报