What is the way to connect with JDBC to a mySql database that is online?
mysql.info.mi.us:3006 = corresponds to the server of the database
mydatabases_2 = my databases
my try returning this error:
java.lang.NullPointerException
Class.forName("com.mysql.jdbc.Driver")
connexion = DriverManager.getConnection("jdbc:mysql://mysql.info.mi.us:3306", "user", "password");
Class.forNameno longer is needed.StackTraceand more code.