MySQL查看连接的客户端ip

 

SELECT substring_index(host, ':',1) AS host_name,state,count(*)
ROM information_schema.processlist GROUP BY state,host_name;

posted @ 2023-05-31 09:25  金虹巴巴  阅读(100)  评论(0编辑  收藏  举报