Database Systems Midterm L1
Database Systems Midterm L1
to Java
Instructor: Michael Ray V. Alvina
Connecting to Java
In order to connect MySql to Eclipse, these steps are necessary:
● In MySql, click the create a new Schema button, name it and select apply
Connecting to Java
In order to connect MySql to Eclipse, these steps are necessary:
● Basic information:
○ Driver class: The driver class for the mysql database is com.mysql.cj.jdbc.Driver.
○ Connection URL: The connection URL for the mysql database is
jdbc:mysql://localhost:3306/testdb where:
● Where:
○ The url is the location of your database.
○ dbUsername & dbPassword is your mySql username and password (default being
“root”)
Connecting to Java - Coding Phase
In order to connect MySql to Eclipse, these steps are necessary: