I am Arios Source 0.3
I am having a problem with connecting the client to the server.
The Source runs through another Server Files Which runs Via, SQL to save player files into the "database" i assume. and i want to know how to get rid of it?
or even fix it so i can just get the client to just connect to the server?
Some of the Code that i think is being use but not completed
Sql Handler in the ServerManagement Folder that holds all the players.
Code:
public static void init() {
try {
Class.forName("com.mysql.jdbc.Driver");
} catch (ClassNotFoundException e) {
e.printStackTrace();
}
initialized = true;
WorldListSQLHandler.clearWorldList();
}
/**
* Gets a connection from the pool.
* @return The connection.
*/
public static Connection getConnection() {
try {
return DriverManager.getConnection("jdbc:mysql://" + DATABASE_URL, USERNAME, PASSWORD);
} catch (SQLException e) {
System.out.println("Error: Mysql error message=" + e.getMessage() + ".");
}
return null;
}
/**
* Releases the connection so it's available for usage.
* @param connection The connection.
*/
public static void close(Connection connection) {
try {
connection.close();
} catch (SQLException e) {
e.printStackTrace();
}
}
and what i get in the source is just its not connecting anything... if im not explaining clearly please let me know.
-Thanks Best reguards
-Tyler