码迷,mamicode.com
首页 > 数据库 > 详细

com.mysql.jdbc.exceptions.MySQLNonTransientConnectionException: Too many connections

时间:2015-08-31 14:57:56      阅读:432      评论:0      收藏:0      [点我收藏+]

标签:

 

com.mysql.jdbc.exceptions.MySQLNonTransientConnectionException: Too many connections
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:921)
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2822)
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:777)
        at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:3231)
        at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1147)
        at com.mysql.jdbc.Connection.createNewIO(Connection.java:2595)
        at com.mysql.jdbc.Connection.<init>(Connection.java:1509)
        at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
        at java.sql.DriverManager.getConnection(DriverManager.java:571)
        at java.sql.DriverManager.getConnection(DriverManager.java:215)
        at util.mysql.MySQLUtil.getConnection(MySQLUtil.java:36)
        at logic.BulletinDao.addProduct(BulletinDao.java:87)
        at Bulletin.main(Bulletin.java:84)

 

解决:关闭连接 或者 调整服务的max_connections

com.mysql.jdbc.exceptions.MySQLNonTransientConnectionException: Too many connections

标签:

原文地址:http://www.cnblogs.com/feelgood/p/4773017.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!