mysql 链接数

show status;

Threads_cached           | 0     |

| Threads_connected        | 1     |              //正在连接的连接数

| Threads_created          | 3     |              //已经创建过的连接数

| Threads_running          | 1     |              //正在运行的连接数

| Uptime                   | 22947 |

 

show variables; 

| max_connections                 | 16384       //允许的最大连接数

show processlist;

select concat('KILL ',id,';') from information_schema.processlist ;

 

mysql 链接数