参考:https://www.gxlcms.com/mysql-380778.html
最直观的办法:
select SUBSTRING_INDEX(host,':',1) as ip , count(*) from information_schema.processlist group by ip;
参考:https://www.gxlcms.com/mysql-380778.html
最直观的办法:
select SUBSTRING_INDEX(host,':',1) as ip , count(*) from information_schema.processlist group by ip;