- MySQL查询所有连接的IP地址指令
select SUBSTRING_INDEX(host,':',1) as ip , count(*) from information_schema.processlist group by ip;
SELECT substring_index(host, ':',1) AS host_name,state,count(*) FROM information_schema.processlist GROUP BY state,host_name;
(持续更新…)
如有其他问题存在,更好的推荐和建议,请各路山居隐士指点一二。