Glassfish中的MySQL连接池无法正常工作

时间:2012-02-20 07:45:58

标签: mysql glassfish connection-pooling ping

我正在尝试在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仍然无效。

1 个答案:

答案 0 :(得分:2)

我觉得缺少用户名。

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

相关问题