Glassfish 中的 MySQL 连接池不工作
我正在尝试在 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在我看来,用户名丢失了。
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 ...)