A Java console application demonstrating basic Create, Read, Update, Delete operations against a MySQL database from Northeastern Illinios University. Website used: phpMyAdmin
- Create records (INSERT)
- Read records (SELECT)
- Update records (UPDATE)
- Delete records (DELETE)
- Java
- MySQL
- MySQL Connector/J (JDBC Driver)
- Java (JDK 8+ recommended)
- MySQL database access
- MySQL Connector/J (JDBC driver)
Download MySQL Connector/J from the official MySQL site and add the .jar to your classpath:
https://dev.mysql.com/downloads/connector/j/
This project does not hold credentials so no secrets are stored in the code.
Look within each java file except main for
//MUST UPDATE BELOW WITH YOUR CLASS LINK AND PASSWORD////////////////////
String url = "CLASS_LINK_HERE phpMyAdmin_SQL";
url += "PERSONAL_PASSWORD_FROM_CLASS";
//MUST UPDATE ABOVE WITH YOUR CLASS LINK AND PASSWORD/////////////////////
Insert your credentials in each file.
I used jGRASP as my IDE with the JDBC driver inserted within my folder.