Data source rejected establishment of connection, message from server: "Too many connections"
2015-04-27 18:45
651 查看
今天上传服务器时,连续点击搜索按钮。可能是频繁操作数据库了。产生了这样一个错误。
Data source rejected establishment of connection, message from server: "Too many connections"
以前也遇到过这样的错误,网上百度了一下,造成这样的结果有两个原因:
1、写SQL语句时打开的连接太多,没有关闭。这个需要这样改正:
finally{
DBC.close(pst, conn);
}
将数据库关闭掉。
2、若还有问题,可以打开MYSQL安装目录打开MY.INI找到max_connections(在大约第93行)默认是100 一般设置到500~1000比较合适,重启mysql,这样1040错误就解决啦。
max_connections=1000。
这样就可以解决这类问题了。
Data source rejected establishment of connection, message from server: "Too many connections"
以前也遇到过这样的错误,网上百度了一下,造成这样的结果有两个原因:1、写SQL语句时打开的连接太多,没有关闭。这个需要这样改正:
finally{
DBC.close(pst, conn);
}
将数据库关闭掉。
2、若还有问题,可以打开MYSQL安装目录打开MY.INI找到max_connections(在大约第93行)默认是100 一般设置到500~1000比较合适,重启mysql,这样1040错误就解决啦。
max_connections=1000。
这样就可以解决这类问题了。
相关文章推荐
- Data source rejected establishment of connection, message from server: "Too many connections"
- Mysql的错误,待解决[已解决]Data source rejected establishment of connection message from server: "Too many connections";
- Data source rejected establishment of connection, message from server: "Too many connections"
- (2) Data source rejected establishment of connection, message from server: "Too many connections"解决办
- Data source rejected establishment of connection, message from server: "Too many connections"
- Data source rejected establishment of connection, message from server: "Too many connections"
- Data source rejected establishment of connection, message from server: "Too many connections"
- Data source rejected establishment of connection, message from server: "Too many connections"
- Data source rejected establishment of connection, message from server: "Too many connections"
- Data source rejected establishment of connection message from server: "Too many connections";
- Data source rejected establishment of connection, message from server: "Too many connections"解决办法
- mysql: Data source rejected establishment of connection, message from server: "Too many connections"
- Data source rejected establishment of connection, message from server: "Too many connections"
- Data source rejected establishment of connection, message from server: "Too many connections"
- Data source rejected establishment of connection, message from server: "Too many connections"解决办法
- MySQL Data source rejected establishment of connection, message from server: "Too many connections"
- 由于没有发现潜在的递归导致MySQL链接数溢出:MySQLNonTransientConnectionException: Data source rejected establishment of connection, message from server: "Too many connec
- Data source rejected establishment of connection, message from server: "Too
- mysql errors:message from server: "Host 'xxx' is blocked because of many connection errors; unblock
- com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Data source rejected establishment of connection, message from server: "Too many connections"