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.properties
file with your MySQL information. This file should be in the current directory when you run the app. Checkmysql-sample.properties
to fill it correctly. -
Create
lib
folder and inside it download the MySQL JDBC compatible with your MySQL version. -
Compile Java source code in
bin
folder.
javac -d bin src/jdbc/appointments/*.java
- Run Java app.
java -cp bin:lib/mysql-connector-j-9.0.0.jar jdbc.appointments.Main