MySQL查看所有连接的客户端ip

2023-11-13 19:30:47 浏览数 (1)

代码语言:javascript复制
SELECT
	substring_index(HOST, ':', 1) AS host_name,
	state,
	count(*)
FROM
	information_schema. PROCESSLIST
GROUP BY
	state,
	host_name;

0 人点赞