查看mysql數據庫連接池的示例
打開mysql終端輸入以下命令查看。
show full processlist;show open tables where In_use > 0;show processlist;select * from information_schema.processlist where db = '數據庫名稱' and command != 'Sleep' and Time >1000
show open tables where In_use > 0;
show processlist;
select * from information_schema.processlist where db = '數據庫名稱' and command != 'Sleep' and Time >1000