This blog clearly explains how to configure the MySQL sample database (sakila) with GlassFish. Even though the instructions use a specific database but should work for other databases (such as Oracle, JavaDB, PostgreSQL, and others) as well. The second half of the blog provide specific syntax for the Oracle sample database.
- Download sakila sample database and unzip the archive.
- Install the database as described here - basically load and run "sakila-schema.sql" and "sakila-data.sql" extracted from the archive.
- Create a new MySQL user account using MySQL CLI Admin and
assign the privileges
- …