MySQL DB connection in Java

Discussion in 'MySQL' started by zdunham6287, Mar 26, 2007.

  1. zdunham6287

    zdunham6287 New Member

    Joined:
    Feb 7, 2007
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Pennsylvania, USA
    Home Page:
    http://www.tombradyfansite.com
    I'm currently writing a java program that will access my database hosted by godaddy.com. I have the correct MySQL driver for it to work in java but I can't get the connection to work. This is what I was told to use:
    "jdbc:mysql://mysql server:port/databasename"

    and this is what im using:
    "jdbc:mysql://mysql277.secureserver.net:277/mydatabase"

    I keep getting a connection timeout every time I run the program. I also send in user name and password. (DriverManager.getConnection(url,username,password). Anyone have any ideas?
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice