配置wait_timeout 链接超时时间 1.直接用sql命令行修改 mysql> set global wait_timeout=10; msyql> set global interactive_timeout=28800; mysql> show global variables like ‘wait_timeout’; 配置mysql连接数的 mysql> set global max_connections=10; mysql> show global variables like ‘max_connections’;