查看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