1040 too many connections

先重启mysql。

登录成功后执行以下语句查询当前的最大连接数:select VARIABLE_VALUE from information_schema.GLOBAL_VARIABLES where VARIABLE_NAME='MAX_CONNECTIONS';

执行以下语句修改最大连接数:set global max_connections = 1000;

原文地址:https://www.cnblogs.com/penghq/p/10238803.html