Jump to content

Recommended Posts

Posted

Hello,

I have a problem when I try to connect to my mysql DB in Java.

In my local server this code works OK but in heliohost it don't work.

 

Class.forName("com.mysql.jdbc.Driver");

con = DriverManager.getConnection( "jdbc:mysql:http://www.heliohost.org:2082/db","user","pass");

 

That is the error:

 

java.sql.SQLException: No suitable driver found for jdbc:mysql:http://www.heliohost.org:2082/

 

can I access to my db in heliohost.org with JDBC ? how can I?

Thanks.

 

Posted

Well, HelioHost doesn't have Java so that code wouldn't work, would it?

 

And the JDBC, I'm pretty sure, is a problem on your end. I remember having this issue when coding for Android that they didn't build JDBC in to the framework. I think some Googling and installing the JDBC drivers to your local machine should fix your problem there.

Guest
This topic is now closed to further replies.
×
×
  • Create New...