30.07.2014, 16:40
pawn Код:
static connection_handle;
public ConnectMySQL() {
LogCallback("ConnectMySQL");
connection_handle = mysql_connect(DB_HOST, DB_USER, DB_, DB_PASS);
if(mysql_errno(connection_handle) != 0){
printf("[MySQL]: Connection failed to database '%s'", DB_);
} else {
printf("[MySQL]: Connected successfully to database '%s'", DB_);
}
}
Also, make sure that your SQL server is running and optamized to your credentials.