These are a couple of assignments I did a couple years ago to connect to a MySQL database and execute queries. If I remember correctly Assign2 has most of the query hard coded, just looking up by a user input part number. Assign3 allows you to select the database, table, and does slightly more to put together a query string. They're pretty trivial and worked perfectly at the time. Just make sure you have your classpath set correctly to point to the driver from MySQL.