Glassfish 中的 MySQL 连接池不工作

发布于 2025-01-07 09:33:11 字数 342 浏览 3 评论 0原文

我正在尝试在 Glassfish 中为 MySQL 服务器设置连接池。但是,当我尝试 PING 它时,它失败了,服务器给出了以下错误:

WARNING: RAR8054: Exception while creating an unpooled [test] connection for pool
[myPoolName], Connection could not be allocated because: Access denied for user 
''@'localhost' {using password: YES}

在我的连接池属性中,我确实指定了密码,但 ping 仍然不起作用。

I'm trying to setup a connection pool in Glassfish for a MySQL server. But when i try and PING it it fails, server gives this error stating:

WARNING: RAR8054: Exception while creating an unpooled [test] connection for pool
[myPoolName], Connection could not be allocated because: Access denied for user 
''@'localhost' {using password: YES}

In my connection pool properties I did specify the password, but ping is still not working.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

初熏 2025-01-14 09:33:11

在我看来,用户名丢失了。

MySQL 服务器通常默认具有 root/pass 组合。在连接池中,您应该提供用户名密码。您可以尝试连接不同的客户端来测试正确的凭据(例如您的 IDE 或 MySQL Workbench 或 MySQL 命令行...)

Seems to me that the user name is missing.

MySQL server often has root/pass combination by default. In your connection pool you should give the username and the password. You could try to connect with a different client to test the correct credentials (e.g. your IDE or MySQL Workbench or MySQL command line ...)

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