Thread: Mysql?

Results 1 to 2 of 2
  1. #1 Mysql? 
    Registered Member
    Join Date
    Jan 2009
    Posts
    764
    Thanks given
    0
    Thanks received
    10
    Rep Power
    3
    I get this error when I put my "Webhost Address" to connect to the Db.

    Code:
    [1/22/11 8:28 PM]: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Comm
    unications link failure
    
    The last packet successfully received from the server was 1,295,749,711,650 mill
    iseconds ago.  The last packet sent successfully to the server was 0 millisecond
    s ago.
    [1/22/11 8:28 PM]:      at sun.reflect.NativeConstructorAccessorImpl.newInstance
    0(Native Method)
    [1/22/11 8:28 PM]:      at sun.reflect.NativeConstructorAccessorImpl.newInstance
    (NativeConstructorAccessorImpl.java:39)
    [1/22/11 8:28 PM]:      at sun.reflect.DelegatingConstructorAccessorImpl.newInst
    ance(DelegatingConstructorAccessorImpl.java:27)
    [1/22/11 8:28 PM]:      at java.lang.reflect.Constructor.newInstance(Constructor
    .java:513)
    [1/22/11 8:28 PM]:      at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
    [1/22/11 8:28 PM]:      at com.mysql.jdbc.SQLError.createCommunicationsException
    (SQLError.java:1074)
    [1/22/11 8:28 PM]:      at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionI
    mpl.java:2214)
    [1/22/11 8:28 PM]:      at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.j
    ava:773)
    [1/22/11 8:28 PM]:      at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection
    .java:46)
    [1/22/11 8:28 PM]:      at sun.reflect.NativeConstructorAccessorImpl.newInstance
    0(Native Method)
    [1/22/11 8:28 PM]:      at sun.reflect.NativeConstructorAccessorImpl.newInstance
    (NativeConstructorAccessorImpl.java:39)
    [1/22/11 8:28 PM]:      at sun.reflect.DelegatingConstructorAccessorImpl.newInst
    ance(DelegatingConstructorAccessorImpl.java:27)
    [1/22/11 8:28 PM]:      at java.lang.reflect.Constructor.newInstance(Constructor
    .java:513)
    [1/22/11 8:28 PM]:      at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
    [1/22/11 8:28 PM]:      at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionI
    mpl.java:352)
    [1/22/11 8:28 PM]:      at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegist
    eringDriver.java:282)
    [1/22/11 8:28 PM]:      at java.sql.DriverManager.getConnection(DriverManager.ja
    va:582)
    [1/22/11 8:28 PM]:      at java.sql.DriverManager.getConnection(DriverManager.ja
    va:185)
    [1/22/11 8:28 PM]:      at server.model.players.Highscores.process(Highscores.ja
    va:18)
    [1/22/11 8:28 PM]:      at server.Server.main(Server.java:106)
    I think I'm not putting the right address/host to connect to it.

    This is what I have

    public static String Host = "jdbc:mysql://HOST/DB NAME";
    Reply With Quote  
     

  2. #2  
    Registered Member
    gomomo11's Avatar
    Join Date
    May 2010
    Posts
    2,379
    Thanks given
    268
    Thanks received
    196
    Rep Power
    177
    U got the wrong Mysql host
    Attached image
    no external links without affiliate
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. MySQL: Cannot Find MySQL Driver
    By Glass O Wine in forum Help
    Replies: 3
    Last Post: 05-02-2010, 11:30 AM
  2. [MySQL]MySQL Intergration By Mikelmao [DELTA]
    By mikelmao in forum Tutorials
    Replies: 16
    Last Post: 12-02-2009, 10:06 AM
  3. Question? MySQL or Non-MySQL
    By Shivers in forum Help
    Replies: 19
    Last Post: 11-29-2009, 06:53 PM
  4. 474 with mysql.
    By Tzar in forum Requests
    Replies: 1
    Last Post: 12-15-2008, 01:14 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
  •