Log in to the GlassFish Admin Console.
In the left navigation panel, expand Resources and JDBC, and then select Connection Pools.
Click New.
The New JDBC Connection Pool page appears.
Do the following:
Scroll down to the Additional Properties table, and enter the following values:
port – The port number for the database. By default, MySQL uses 3306.
databaseName – The name of the database schema.
serverName – The name of the server on which the database is located.
user – The login ID of the IEP user (for example, IEPSEDB).
password – The password of the IEP user (for example, IEPSEDB).
url – The string for connecting to the database (for example, jdbc:mysql://myserver:3306/IEPSEDB).
Click Finish.
The connection pool is created.
Click the connection pool that you just created.
The Edit Connection Pool page appears.
Click Ping.
The Admin Console attempts to connect to the database. If the connection does not succeed, check to see whether the database is running and verify the database connectivity properties, such as the URL string.