Mysql Too many connections解决方法

检查

# 查看当前所有连接
mysql> show full processlist;
# 查看MySQL连接设置
mysql> show variables like '%connect%';

解决方法

调高连接数

编辑配置文件

[mysqld]
max_connections=1000
max_user_connections=850
max_connect_errors=1000
max_allowed_packet=100M

你可能感兴趣的:(MySQL)