1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

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

Discussion in 'Plesk for Linux - 8.x and Older' started by ramesh, Apr 18, 2006.

  1. ramesh

    ramesh Guest


    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

  2. wagnerch

    wagnerch Guest

  3. ramesh

    ramesh Guest

    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..