Java configuration

dennismartinez

New Member
Messages
4
Reaction score
0
Points
0
I can't seem to connect, do I have this configured right? (URL)

Code:
String url = "jdbc:mysql-stoli.x10hosting.com/denniswm_users";

The username, and passwords are right, just the URL I'm having trouble with.

I've been reading a bit, it seems like java is not offered to free hosting, this could possibly be the problem.
 
Last edited:

xav0989

Community Public Relation
Community Support
Messages
4,467
Reaction score
95
Points
0
Indeed, Java is not offered in the free hosting accounts. I am not sure if it is in the premium package, but I don't think so. However, if you have a VPS, you can install java on it.
 

ah-blabla

New Member
Messages
375
Reaction score
7
Points
0
I can't seem to connect, do I have this configured right? (URL)

Code:
String url = "jdbc:mysql-stoli.x10hosting.com/denniswm_users";
The username, and passwords are right, just the URL I'm having trouble with.

I've been reading a bit, it seems like java is not offered to free hosting, this could possibly be the problem.
What exactly are you trying to do? Is this a java applet / application which is trying to connect to your database -- i.e. one which the user runs? If so, it's only possible with paid since external mysql access is only available for paid hosting (Java applets run client side, and are therefore seen as external for the server). Java applets however are allowed on free hosting (the server only sees them as files which it serves), the only thing you can't do is run normal java code directly on the server. However it IS possible to natively compile java using gcj and then to run that on the server.

If it is a client side application, don't allow direct SQL access anyway, whatever you do. Write a web-service php / python / etc. script to interface from the external application to SQL.
 
Top