Please know that I am quite new at databases. I was able to properly install mySQL and install the java connector driver. But whenever I run a program in eclipse and try to retrieve info from a database I created I get the following message: "SSL Connection required, but not supported by server". Here the code I want to run with a secure SSL connection:
`public static void main(String[] args) {
String username = "";
String password = "";
String dbURL = "jdbc:mysql://localhost:3306/demo"
+ "?verifyServerCertificate=false"
+ "&useSSL=false"
+ "&requireSSL=false";
try{
// 1. Get a connection to database
Connection myConn = DriverManager.getConnection(dbURL, username, password);
// 2. Create a statement
Statement myStmt = myConn.createStatement();
// 3. Execute SQL query
ResultSet myRs = myStmt.executeQuery("select name from movies");
// 4. Process the result set
while(myRs.next()){
System.out.println(myRs.getString("name") );
}
}
catch(Exception exc){
exc.printStackTrace();
}`