Creating a server Bat error

Results 1 to 5 of 5
  1. #1
    Elite Member PerfectEnding is offline
    Member +Rank
    Jul 2013 Join Date
    104Posts

    Creating a server Bat error

    Hellers people (:

    I was making a new server on a windows 2008 R2 Vps and for some reason when I try to set up a v117 using Fuckms or ExiledMS's source, it always gives me this error in the server bat.

    ERRORcom.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving u
    p.
    Exception in thread "main" java.lang.ExceptionInInitializerError
    at server.Start.run(Start.java:37)
    at server.Start.main(Start.java:126)
    Caused by: java.lang.NullPointerException
    at server.ServerProperties.<clinit>(ServerProperties.java:30)
    ... 2 more
    Press any key to continue . . .




    I have:
    Edited the Constants to match my SQL info
    I have Executed the SQL
    The wamp is online and it is green
    and I have java 7

    I have no idea why this is happening, can any one please help me? I can't find a solution online. Much thanks (:!!


  2. #2
    Elite Member EastW is offline
    Member +Rank
    Jun 2010 Join Date
    110Posts

    Re: Creating a server Bat error

    Hav u editted the databaseconnection.java or db properties to match the schema u created in mysql?

  3. #3
    C++ TheIceBreaker is offline
    Grand MasterRank
    Jan 2013 Join Date
    SwordArtOnlineLocation
    598Posts

    Re: Creating a server Bat error

    Actually read the error, no connection can be found from mysql to databaseserver. Your schema and db in serverconstants must be named the same.

  4. #4
    Elite Member PerfectEnding is offline
    Member +Rank
    Jul 2013 Join Date
    104Posts

    Re: Creating a server Bat error

    Quote Originally Posted by EastW View Post
    Hav u editted the databaseconnection.java or db properties to match the schema u created in mysql?
    Where can I find the databaseconnection.java?


    Quote Originally Posted by TheIceBreaker View Post
    Actually read the error, no connection can be found from mysql to databaseserver. Your schema and db in serverconstants must be named the same.
    In the server constants there is only 1 line that has my MYSQL information. Which is this,

    public static final String SQL_USER = "root", SQL_PASSWORD = "";

    Which I have edited correctly as well

    Edit: I have found the databaseconnection.java thing.

  5. #5
    iamTheKing NyCPirate is offline
    Grand MasterRank
    Aug 2009 Join Date
    c.getNyC.posLocation
    1,746Posts

    Re: Creating a server Bat error

    You did compile right?



Advertisement