Mysql connection failed
#3

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_);
    }
}
Try this, not much changed.

Also, make sure that your SQL server is running and optamized to your credentials.
Reply


Messages In This Thread
Mysql connection failed - by devil shill - 30.07.2014, 16:17
Re : Mysql connection failed - by SlimDkhili - 30.07.2014, 16:33
Re: Mysql connection failed - by d3ll - 30.07.2014, 16:40
Re: Mysql connection failed - by devil shill - 30.07.2014, 16:52
Re: Mysql connection failed - by coole210 - 30.07.2014, 21:00

Forum Jump:


Users browsing this thread: 1 Guest(s)