1. 程式人生 > >查詢慢SQL

查詢慢SQL

list ati order mysql select 查詢 連接 當前時間 sql

可以查看當前時間訪問庫的所有請求SQL SELECT COUNT(*) AS c,state,info FROM `information_schema`.processlist GROUP BY state ORDER BY c DESC; SHOW PROCESSLIST; -- 查所有db庫連接數 SELECT db,COUNT(db) FROM information_schema.`PROCESSLIST` GROUP BY db mysql

查詢慢SQL