Jump to content

[Solved] problem with jdbc


raulc

Recommended Posts

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.

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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