To install the database to a new system use the following commands in a terminal:
mysql -u root -p -e "create database u21435872_u21452832_sakila";
mysql -u root -p u21435872_upbank < sakila-schema.sql
mysql -u root -p u21435872_upbank < sakila-data.sql
The easiest way to run the program is by using the makefile located at:
./prac04/src/main/java/makefile
You can specify paramaters to the program using command line arguments that you can modify in the makefile according too your needs. You can also use the default settings but they may not work. Do not move the makefile. Arguments are:
- -p --password : specify a password to access the database with
- -u --username : specify a username to access the database with
- -d --database : specify a database name to access the database with
- --port : specify a port to access the database with
- example: App -p pwd2logo -u daniel -d database --port 3306