MySQL connect
#4

For check is this

pawn Код:
CheckConnection()
{
    if(!mysql_ping(connection))
    {
        return 1;
    }
    else
    {
        mysql_connect(SQL_HOST, SQL_USER, SQL_PASS,SQL_DB,connection,1);
        if(!mysql_ping(connection))
        {
            return 1;
        }
        else
        {
            print( "MySQL Connection is dead, exiting..." );
            SendRconCommand("exit");
            return 0;
        }
    }
}
Reply


Messages In This Thread
MySQL connect - by dannyk0ed - 31.05.2012, 23:18
Re: MySQL connect - by ikey07 - 31.05.2012, 23:56
Re: MySQL connect - by dannyk0ed - 01.06.2012, 00:02
Re: MySQL connect - by ikey07 - 01.06.2012, 00:05
Re: MySQL connect - by dannyk0ed - 01.06.2012, 00:12
Re: MySQL connect - by ikey07 - 01.06.2012, 00:18
Re: MySQL connect - by dannyk0ed - 01.06.2012, 00:34
Re: MySQL connect - by dannyk0ed - 01.06.2012, 00:36
Re: MySQL connect - by coole210 - 01.06.2012, 00:55
Re: MySQL connect - by dannyk0ed - 01.06.2012, 00:56

Forum Jump:


Users browsing this thread: 1 Guest(s)