问题:Data source rejected establishment of connection, message from server: "Too many connections"
解决方案:
1. 在/etc/my.cnf 文件最后 加入:max_connections=10000
2. 重启MySQL:systemctl restart mysql
重启后可以通过以下命令查看当前的最大连接数:
SHOW VARIABLES LIKE 'max_connections';
问题:Data source rejected establishment of connection, message from server: "Too many connections"
解决方案:
1. 在/etc/my.cnf 文件最后 加入:max_connections=10000
2. 重启MySQL:systemctl restart mysql
重启后可以通过以下命令查看当前的最大连接数:
SHOW VARIABLES LIKE 'max_connections';
790

被折叠的 条评论
为什么被折叠?