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 - Python技术站