I'm getting the error "No suitable driver found for jdbc:mysql://[...]" when running a Java program on Cloud 9 which has the following ConnectionFactory class:
import java.sql.*;
public class ConnectionFactory {
public static Connection getConnection() {
try {
return DriverManager.getConnection("jdbc:mysql:// [suppressed path, user and password details]");
} catch (SQLException e) {
throw new RuntimeException(e);
}
}
}
I know this is because I should install the MySQL driver for Java in the server, but how do I do that in Cloud 9?