This project is a demo for testing development of a MySQL database based on medical appointments and a Java based TUI (text user interface) for user intercation using the JDBC (Java Database Connector) to connect to the appointments database.
- 
Clone the repository. 
- 
Create the appointments database. 
mysql -u USER -p < appointments.sql
- (Optional) Add sample information to the database.
mysql -u USER -p < appointments-sample.sql
- 
Create mysql.propertiesfile with your MySQL information. This file should be in the current directory when you run the app. Checkmysql-sample.propertiesto fill it correctly.
- 
Create libfolder and inside it download the MySQL JDBC compatible with your MySQL version.
- 
Compile Java source code in binfolder.
javac -d bin src/jdbc/appointments/*.java
- Run Java app.
java -cp bin:lib/mysql-connector-j-9.0.0.jar jdbc.appointments.Main