(Error ID: 2006, MySQL server has gone away)
#5

A quick way would be to set a timer that checks the connection of the mysql every 5-10minutes.

pawn Code:
forward CheckMySQL();
public CheckMySQL()
{
   if (!mysql_ping())
   {
     mysql_connect(host, user, database, pass);
   }
}
Reply


Messages In This Thread
(Error ID: 2006, MySQL server has gone away) - by cAMo - 21.05.2010, 04:49
Re: (Error ID: 2006, MySQL server has gone away) - by BLAbla93 - 21.05.2010, 04:50
Re: (Error ID: 2006, MySQL server has gone away) - by cAMo - 21.05.2010, 05:15
Re: (Error ID: 2006, MySQL server has gone away) - by cAMo - 21.05.2010, 17:03
Re: (Error ID: 2006, MySQL server has gone away) - by Anwix - 21.05.2010, 17:13
Re: (Error ID: 2006, MySQL server has gone away) - by cAMo - 21.05.2010, 17:22
Re: (Error ID: 2006, MySQL server has gone away) - by WackoX - 21.05.2010, 18:06
Re: (Error ID: 2006, MySQL server has gone away) - by cAMo - 21.05.2010, 18:15
Re: (Error ID: 2006, MySQL server has gone away) - by Sergei - 21.05.2010, 18:19

Forum Jump:


Users browsing this thread: 1 Guest(s)