21.05.2010, 04:49
Quote:
(Error ID: 2006, MySQL server has gone away) |
Why is this happening? How do I keep the connection/reestablish it?
(Error ID: 2006, MySQL server has gone away) |
forward CheckMySQL();
public CheckMySQL()
{
if (!mysql_ping())
{
mysql_connect(host, user, database, pass);
}
}
forward CheckMySQL();
public CheckMySQL()
{
if (!mysql_ping())
{
mysql_connect(host, user, database, pass);
}
}