如何解决 user1 在 Hibernate-HQL 中已经有超过 'max_user_connections' 个活动连接?

How to resolve user1 already has more than 'max_user_connections' active connections in Hibernate- HQL?

我收到此异常 com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException

User allnewdo_user1 already has more than 'max_user_connections' active connections

虽然我在每个地方都关闭了会话。在 Dao 中仍然出现此错误

请阅读 This 以通过增加主配置文件中的 max_connections 值来解决您的问题。