How do I set ping on MYSQL
#6

Quote:
Originally Posted by MadeMan
Посмотреть сообщение
The error is about connection handle, not ping.

Show the line in script, where you use mysql_ping.
print("MYSQL: Attempting to connect to server...");
samp_mysql_connect(sqlhost, sqluser, sqlpass);
samp_mysql_select_db(sqldb);
if(samp_mysql_ping()==0)
{
print("MYSQL: Database connection established.");
return 1;
}
else
{
print("MYSQL: Connection error, retrying...");
samp_mysql_connect(sqlhost, sqluser, sqlpass);
samp_mysql_select_db(sqldb);
if(samp_mysql_ping()==0)
Reply


Messages In This Thread
How do I set ping on MYSQL - by FreedomtoLive - 10.12.2011, 17:38
Re: How do I set ping on MYSQL - by MadeMan - 10.12.2011, 17:39
Re: How do I set ping on MYSQL - by FreedomtoLive - 10.12.2011, 17:41
Re: How do I set ping on MYSQL - by FreedomtoLive - 10.12.2011, 17:43
Re: How do I set ping on MYSQL - by MadeMan - 10.12.2011, 17:49
Re: How do I set ping on MYSQL - by FreedomtoLive - 10.12.2011, 17:54
Re: How do I set ping on MYSQL - by FreedomtoLive - 10.12.2011, 17:56
Re: How do I set ping on MYSQL - by Steven82 - 10.12.2011, 18:14
Re: How do I set ping on MYSQL - by FreedomtoLive - 10.12.2011, 18:23
Re: How do I set ping on MYSQL - by Steven82 - 10.12.2011, 19:06

Forum Jump:


Users browsing this thread: 1 Guest(s)