Question: ho connect between eclipse and MYSQL by this code ( public Connection getConnection ( ) throws SQLException { try { Class.forName ( com .

ho connect between eclipse and MYSQL by this code ( public Connection getConnection() throws SQLException {
try {
Class.forName("com.mysql.cj.jdbc.Driver");
} catch (ClassNotFoundException e){
// TODO Auto-generated catch block
e.printStackTrace();
}
Connection connection = DriverManager.getConnection("jdbc:mysql://"+"127.0.0.1"+":"+"3306"+"/"+ "synceditors" +"?sslmode=require", "root", "1234EE");
System.out.println("Done");
return connection;
}) and Give me an example of a JavaFX program that makes a connection and uses the previous code

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!