SA-MP Forums Archive
Server crash - Mysql - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Server crash - Mysql (/showthread.php?tid=611139)



Server crash - Mysql - Chase20 - 02.07.2016

Hello.
I encountered a problem and do not know what to do to him.

code:
Код:
 format( Query, sizeof( Query ), "SELECT `UserID` FROM `Accounts` WHERE `Username` = '%s'", EscapedName );
    mysql_query( Query );
    printf(" SQL: %s",Query);
    mysql_store_result();
server log:
Код:
[15:17:09] MySQL Error (0): Could not execute query. MySQL server has gone away.
[15:17:09]  SQL: SELECT `UserID` FROM `Accounts` WHERE `Username` = 'Chase'
[15:17:09] MySQL Error (0): Function: 'mysql_store_result' called when no prior query executed.. MySQL server has gone away.
After this error, the server receives the crash.
This problem only occurs on host, on localhost has no problems from what I observed.
(sorry for my bad english).


Re: Server crash - Mysql - xJayce - 02.07.2016

Not sure how many times I'll post this but please don't use outdated plugins, just updated plugins.


Re: Server crash - Mysql - Chase20 - 03.07.2016

I also know a server that uses the same plugin and has no problems.
Another solution would be?