MySQL查看全部鏈接的客戶端ip

SELECT substring_index(host, ':',1) AS host_name,state,count(*) FROM information_schema.processlist GROUP BY state,host_name;
相關文章
相關標籤/搜索