show full processlist; //显示全部连接详细信息 status //显示数据库信息,Threads代表当前连接数 show variables like 'wait_timeout'; //显示当前连接超时秒数 set global wait_timeout=100 //设置连接超时秒数