JDBC连接问题
我只创建了一个用于连接 MYSQL 数据库的对象...并且我只尝试访问它一次,但它给出了这样的异常
Could not be able to connect database com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Too许多连接
请帮我解决这个问题。
i have created only one object for connection MYSQL database ... and i am trying to access it only one time but it is giving a exception like this
Could not able to connect database com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Too many connections
please help me out to this problem.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
my.cnf
文件中max_connections
变量的值是多少?是否有其他用户连接到同一台 MySQL 服务器?What is the value of the
max_connections
variable in yourmy.cnf
file? Are there other users connecting to the same MySQL server?