1/status
链接数:Threads;
2/show processlist; 可以显示前100条连接信息 show full processlist; 可以显示全部
3/show variables like ‘%timeout%’;查看链接超时时间
4、show variables like ‘%connections%’; 查看最大链接数
5、修改配置
vim /usr/local/mysql/my.cnf
wait_timeout=31104000
interactive_timeout = 31104000