1040 -Too many connections
查看最大连接数
SHOW VARIABLES LIKE 'max_connections';
临时调整(重启 MySQL 后失效)
SET GLOBAL max_connections = 1000;
永久调整
编辑 MySQL 配置文件(通常是 my.cnf
或 my.ini
)
[mysqld]
max_connections = 1000
重启 MySQL 服务
systemctl restart mysql
标签:1040,many,mysql,connections,Too,max,MySQL From: https://blog.csdn.net/wochunyang/article/details/144932933