Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2010
    Posts
    16
    Rep Power
    0

    Default unable to connect remote database using jdbc

    i want to connect remote database(which have MySql 5.1.26 RDMS)
    and give following exception....


    Cannot create PoolableConnectionFactory (Communications link failure

  2. #2
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    8

    Default

    Firewall, grants, host/ip, etc, etc, etc. First question first, do you have any idea what actually needs to be done on the network and/or MySQL side of things (forget about Java at the moment all together). If not, find that out first and make sure all of the conditions are met before playing around with jdbc. Doing both at the same time will be an exercise in futility.

Similar Threads

  1. how to connect to database using jdbc in servelets
    By sureshmca08 in forum Java Servlet
    Replies: 2
    Last Post: 05-28-2010, 09:06 AM
  2. Replies: 4
    Last Post: 04-28-2010, 06:13 PM
  3. failed to connect to remote vm
    By plummer in forum Eclipse
    Replies: 1
    Last Post: 05-08-2009, 08:11 AM
  4. connect JDBC to offline database
    By nancyhung in forum JDBC
    Replies: 1
    Last Post: 04-11-2008, 11:04 PM
  5. Using JDBC to connect to ORACLE database
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 02-10-2008, 11:27 AM

Posting Permissions

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