Edit file _template_persistance.xml:
- Rename it to persistance.xml
- Insert correct values for ** $DATABASE_HOST_OR_IP$ - Database host name or ip addres; if the database is on the same machine as web server use localhost ** $DATABASE_NAME$ - database name in MySQL database ** $USER_NAME$ - MySQL user name ** $PASSWORD$ - MySQL user password
- Rename packages
- Rename in filter
Database dump is in file jees.sql
To create database execute in MySQl
CREATE DATABASE $_DATABASE_NAME_$;
Where is $DATABASE_NAME$ the same as in persistence.xml file
To insert data in database execute
mysql -u [username] -p $_DATABASE_NAME_$ < jees.sql
After insert database into MySQL server there is account admin/admin
- Login in OpenShift
- Add Application...
- Choose Tomcat
- Set up name