• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

How to establish the MySQL database connection from my Java application?

R

ramesh

Guest
Hi,

I am user, trying to host my Java application using PLESK. I have some set of questions.

Note: I have successfully deployed a .war file (java application) and created a database & an user id of it.

1. Is there any public user id and password to establish the connection with my database from Java? (like, the PLESK administrative user_id and password).

2. Does the database user id has GRANT privilege?

My java application throws the following exception, If I use my own user id and password, that I created with own database.

java.sql.SQLException: Unable to connect to any hosts due to exception: java.net.SocketException: java.security.AccessControlException: access denied (java.net.SocketPermission xx.xxx.xx.x:3306 connect,resolve)

Any help is appreciated, Thanks

Ramesh
 
Hi wagnerch,

I am sorry, I missed to add this, the Tomcat and Datbase server's are controlled by the web hosting people.
I will check with them and get it done.

Thank you very much..
Ramesh.
 
Back
Top