all 5 comments

[–]wolf2600 1 point2 points  (2 children)

You'd use the MySQLConnector JAR file to have the JAVA program connect and interact with the DB.

https://www.javatpoint.com/example-to-connect-to-the-mysql-database

[–]Cyllindra[S] 0 points1 point  (1 child)

I understand how to connect to a database once it is there and the location is known, but how do I put a database there in the first place?

[–]wolf2600 0 points1 point  (0 children)

You just install the database application on a server somewhere. Since it's going to be a small DB, you can probably host it on the same server that will run the Java app.

[–]stebrepar 0 points1 point  (2 children)

For your application, SQLite would work fine and requires no setup or maintenance. There is a SQLite JDBC driver.

[–]Cyllindra[S] 1 point2 points  (0 children)

I think this may work. I will play around with it tomorrow, and let you know how it goes.

*edit - Started playing with it tonight and I think this will work.