• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[SERVER] Lost database Connection

Kippetjee

Member
Joined
Jun 17, 2009
Messages
1,197
Reaction score
11
Location
The Netherlands
My server lost some times database connection And then he wont save anymore

People cant login anymore...

Some one know maby how this can be happend?

msgql.png
 
Last edited:
ye i know the problem ..... .... yo give ban for ip ... and when this ban is expire you lose conection ....
remember to dont give ban for ip :D

cya !
 
so it's happening on linux too? then it must be something with TFS 0.4, but some people said it's because of a bad my.cnf
 
Code:
function onStartup()
[COLOR="red"]	db.executeQuery("UPDATE `players` SET `online` = 0 WHERE `world_id` = " .. getConfigValue('worldId') .. ";")[/COLOR]
	db.executeQuery("DELETE FROM `guild_wars` WHERE `status` = 0 AND `begin` < " .. (os.time() - 2 * 86400) .. ";")
	db.executeQuery("UPDATE `guild_wars` SET `status` = 5, `end` = " .. os.time() .. " WHERE `status` = 1 AND `end` > 0 AND `end` < " .. os.time() .. ";")
	return true
end


globalevents\scripts\start.lua :) put this :D

and find player in ur database who have id 1991
 
Back
Top