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.
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 …)