JDBC连接问题

发布于 2024-10-10 14:04:06 字数 199 浏览 0 评论 0原文

我只创建了一个用于连接 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

云胡 2024-10-17 14:04:06

my.cnf 文件中 max_connections 变量的值是多少?是否有其他用户连接到同一台 MySQL 服务器?

What is the value of the max_connections variable in your my.cnf file? Are there other users connecting to the same MySQL server?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文