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.
Quote:
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 (:!!
Re: Creating a server Bat error
Hav u editted the databaseconnection.java or db properties to match the schema u created in mysql?
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.
Re: Creating a server Bat error
Quote:
Originally Posted by
EastW
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
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.
Re: Creating a server Bat error