aspose file tools*
The moose likes JDBC and the fly likes cannot connect a MySQL database on a hosted website Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "cannot connect a MySQL database on a hosted website" Watch "cannot connect a MySQL database on a hosted website" New topic
Author

cannot connect a MySQL database on a hosted website

raj warke
Greenhorn

Joined: Jan 22, 2001
Posts: 11
Well, I have a MySQL database on a hosted website. I want to connect to the database by using JDBC, as below -



When I run the program, I get below error -

Error :


I can't understand where this error is coming from? and how to solve it?


raj
Anand Hariharan
Rancher

Joined: Aug 22, 2006
Posts: 257

This belongs in one of the Database forums. You can expect your post to be moved somewhere there (JDBC?) shortly.


"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- Antoine de Saint-Exupery
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18906
    
    8

Yes, JDBC would make much more sense than the forum it's in now. I will move it there.

But as for the question: What does your hosting company say about this? Did they tell you that your database would be accessible over the network? Or did you just assume that? At any rate your next step should be to contact their customer support people.
raj warke
Greenhorn

Joined: Jan 22, 2001
Posts: 11
Thanks paul. I am not confirm whether my website host provide MySQL db access. I will contact CC.
 
Don't get me started about those stupid light bulbs.
 
subject: cannot connect a MySQL database on a hosted website