开发者

How to access shared hosting database with Java desktop application

开发者 https://www.devze.com 2023-03-23 17:32 出处:网络
I was looking for a开发者_Python百科 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 conne

I was looking for a开发者_Python百科 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

Mujahid


If the shared hosting provider allows SSH file transfers, check to see if you can create a tunnel to the database server, and configure your desktop application to use that tunnel to connect.


Probably not, for security reasons %99,99 of shared hosting servers would not allow that.

However you can programm a gateway php string that interacts with db on the server side. Then you can connect to this php script from your java app:

your java app <-> php script <-> db

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号