mysql数据库连接客户端过多
- flush hosts;
清理连接

- 查看当前连接数
show PROCESSLIST 与 show full PROCESSLIST (查看当前数据库所有连接,包含空闲连接与活跃连接)
- 查看最大连接数
show variables like '%max_connections%
- 设置最大连接数
set GLOBAL max_connections = 200;
- 查看当前数据库状态
show status;
清理连接

show PROCESSLIST 与 show full PROCESSLIST (查看当前数据库所有连接,包含空闲连接与活跃连接)
show variables like '%max_connections%
set GLOBAL max_connections = 200;
show status;