Well, here is the code;
And here is my JCreator output;
MySQL Driver Found
Connection couldn't be established to jdbc:mysql://localhost:3306/feedback
Exception in
thread "main" java.sql.SQLException: Cannot connect to MySQL server on localhost:3306. Is there a MySQL server running on the machine/port you are trying to connect to? (java.lang.NumberFormatException)
at com.mysql.jdbc.Connection.connectionInit(Unknown Source)
at com.mysql.jdbc.jdbc2.Connection.connectionInit(Unknown Source)
at com.mysql.jdbc.Driver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:185)
at dbCon.makeCon(dbCon.java:24)
at dbCon.runMe(dbCon.java:10)
at dbCon.main(dbCon.java:63)
Process completed.
Well, I use Navicat to connect to mySQL servers, and they work fine.
As for localhost, yeah, I have tried that several times, unfortunately to no avail.