mysql server查询客户端连接数

SELECT
substring_index(HOST, ':', 1) AS host_name,
state,
count(*)
FROM
information_schema. PROCESSLIST
GROUP BY
state,
host_name;         

 

posted on 2019-04-03 11:00  WenQ001  阅读(835)  评论(0编辑  收藏  举报