当前位置:Gxlcms >
数据库问题 >
com.mysql.jdbc.exceptions.MySQLNonTransientConnectionException: Too many connections
com.mysql.jdbc.exceptions.MySQLNonTransientConnectionException: Too many connections
时间:2021-07-01 10:21:17
帮助过:8人阅读
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
标签: