具体方法:
首先打开命令提示符;
然后执行【mysql -u root -p】命令进入mysql;
最后执行如下命令即可:
select SUBSTRING_INDEX(host,':',1) as ip , count(*) from information_schema.processlist group by ip;