- In this I had done simple Java databases connection example with MySQL
- Install Java in your machine.
- Install Eclipse on you machine.
- Click this link , to download MySQL Connector/J 8.0.21 package
- Click JRE System Libraries -> Build path -> Configure Build Path
- Click Modulepath on Libraries
- Click Add external JARs on right
- Then select Mysql Connector/J which is download in step 3 and click open
- Finally click Apply and Close
Now open Secretes.java
final protected static String username = "";
final protected static String password = "";
Fill above credentials
Now open student.sql and excute the SQL file in MySQL Server