Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2003
    Posts
    2

    Red face Unanswered: Applet Can't access MySQL DB with Java on Linux

    I'm getting the following error while trying to run an applet to access a db on my linux (RH) server.

    java.sql.SQLException: Unable to connect to any hosts due to exception: java.security.AccessControlException: access denied (java.util.PropertyPermission file.encoding read)

    I know that the driver is being loaded... I altered some of the Parms on the getConnection method... ie wrong db name...invalid PW.. These errors were reflected in the java console. I only get the error above when all parms are correct...

    jdbc:mysql://myserver/LibData?user=bob&password=help

  2. #2
    Join Date
    Jan 2003
    Location
    Paris, France
    Posts
    320
    I think that you forget the port
    Olivier Miossec
    --
    http://www.lasso-developpeur.net/
    --

  3. #3
    Join Date
    Jul 2003
    Posts
    2

    Applet Can't access MySQL DB with Java on Linux

    I had added ":3306" after myserver (host) name.... It didn't have any effect on the outcome

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •