Jump to content
  • 0
Sign in to follow this  
jc fire

highscores help.

Question

serverside :[SPOILER=serverside] private String host = "31.220.17.87";
private String user = "runed395_hs";
private String pass = "********";
private String database = "runed395_hs";

public Database(String host, String user, String pass, String data) {
this.host = host;
this.user = user;
this.pass = pass;
this.database = data;
}

public boolean init() {
try {
this.conn = DriverManager.getConnection("jdbc:mysql://"+host+":3306/"+database, user, pass);
return true;
} catch (SQLException e) {
return false;
}
}[/SPOILER]


my
webside
[SPOILER=webside]
define("db_host", "localhost");
define("db_user", "runed395_hs");
define("db_pass", "******");
define("db_name", "runed395_hs");
[/SPOILER]

my sql is database and user is
runed395_hs

same on password

but still not connecting.
[IMG]http://i.imgur.com/Pw8ZUiD.png[/IMG]

i dont have any error on my console

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

Sign in to follow this  

×