一起遨游网

一起遨游网为个人站长与玩家提供全面的源码技巧、海量建站素材、电脑技术、网络技巧一体的网站!

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;
本原创文章未经允许不得转载 | 当前页面:一起遨游网 » MYSQL 查询线程语句

评论

文章评论已关闭!