MySQL query crashes my server
#14

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
I tried to reproduce it and I think I got it.

pawn Код:
Server crashed due to an unknown error
and that's because "mysql_close" was not called in OnGameModeExit. I'm not sure if that is your problem.

I also noticed that if I call mysql_close and before that, I update 1 query only - nothing happens. Nothing is written in mysql logs.
I completely forgot about closing the database upon the exiting of the server. That caused the crash. Thank you very much Konstantinos!

@PowerPC603:
That seems more logical than saving every business, house, garage and all other things at the end of the server. I'll do what you said and update everything as soon as it happens. Thank you!
Reply


Messages In This Thread
MySQL query crashes my server - by dominik523 - 09.05.2015, 11:59
Re: MySQL query crashes my server - by Luis- - 09.05.2015, 12:00
Re: MySQL query crashes my server - by dominik523 - 09.05.2015, 12:09
Re: MySQL query crashes my server - by Luis- - 09.05.2015, 12:10
Re: MySQL query crashes my server - by dominik523 - 09.05.2015, 12:22
Re: MySQL query crashes my server - by Konstantinos - 09.05.2015, 12:25
Re: MySQL query crashes my server - by dominik523 - 09.05.2015, 12:51
Re: MySQL query crashes my server - by Konstantinos - 09.05.2015, 13:45
Re: MySQL query crashes my server - by dominik523 - 09.05.2015, 13:53
Re: MySQL query crashes my server - by Konstantinos - 09.05.2015, 13:59
Re: MySQL query crashes my server - by dominik523 - 09.05.2015, 14:04
Re: MySQL query crashes my server - by Konstantinos - 09.05.2015, 14:17
Re: MySQL query crashes my server - by PowerPC603 - 09.05.2015, 15:34
Re: MySQL query crashes my server - by dominik523 - 09.05.2015, 16:38

Forum Jump:


Users browsing this thread: 10 Guest(s)