Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am new to this forum and I was looking for a solution for one of my questions. I have developed a Java desktop application. I have a database in a shared php hosting server. Is there any possible way to connect the shared hosting database with my Java desktop application. And how can I perform timed database synchronization with the shared database server

Thanks in advance


share|improve this question

It depends on your shared hosting provider. Most shared hosting providers do not allow externel access to databases, and those that do are likely to limit what you can do in their Terms of Service (i.e. Use in non-hosted applications). Check your providers FAQ or your control panel.

The alternative is to do part of your application in PHP (residing on the shared host) and have your Java application do HTTP calls to the PHP script which handles the Database access.

share|improve this answer
Wont be there any performance issue when calling the PHP through Java and make the connection?, but it seems a nice idea. In Godaddy, they're saying that they allow the external connection in this link does this mean we can connect it through desktop right? – Mujahid Jul 28 '11 at 9:47

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.