MYSQL 查询线程语句
按IP来排序
select client_ip,count(client_ip) as client_num from (select substring_index(host,':' ,1) as client_ip from information_schema.processlist ) as connect_info group by client_ip order by client_num desc;
显示线程数
show status like 'thread%';
显示所有线程
SHOW FULL PROCESSLIST;
最后更新于 2024-06-14 14:46:48 并被添加「」标签,已有 1231 位网友阅读过。
本站使用「署名 4.0 国际」创作共享协议,可自由转载、引用,但需署名作者且注明文章出处
此处评论已关闭