• 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!

[SQL Connection with Latest TFS lost]

Status
Not open for further replies.

Zonet

Web Developer
Joined
Sep 1, 2008
Messages
4,393
Reaction score
52
Location
Tibia VS RL-life, guess whos back?
Hello everyone i got a War script bought from nahruto [<3]
And with the latest TFS in config there's something

mysqlReadTimeout = 10 <-- this one.

My friend got this script too, he is using gui and getting this problem

in the console] Access denied for user 'ODBC'@'localhost' (using password: YES)

and i'm getting this error [using my kill.lua with svargrond arena.]

I'm getting error in line 12 <-->
PHP:
if enemyGuild == getGuildWarInfo(myGuild).With then


and this getGuildWarInfo(myGuild).With <---use sql

so, i think it is TFS problem, i'll now post my latest config and the old config. my screen first.

68zuqf.jpg

Latest.

sqlType = "mysql"
sqlHost = "localhost"
sqlPort = 3306
sqlUser = "root"
sqlPass = "pass"
sqlDatabase = "dbname"
sqlFile = "forgottenserver.s3db"
sqlKeepAlive = 60
mysqlReadTimeout = 10
optimizeDatabaseAtStartup = "yes"
passwordType = "plain"


Old

sqlType = "mysql"
sqlHost = "localhost"
sqlPort = 3306
sqlUser = "root"
sqlPass = "pass"
sqlDatabase = "dbname"
sqlFile = "forgottenserver.s3db"
sqlKeepAlive = 60
optimizeDatabaseAtStartup = "yes"
passwordType = "plain"


i hope any of TFS developers take a look, what is wrong it that since when it lost the connection my server crashes.


Thank you.
 
Last edited:
Code:
KeepAlive got on 1000 
ReadTimeOut on 1000000

kleksu, may you can explain how does this work?
KeepAlive... for what?
ReadTimeOut... for when lose conecction and stop transfering? :S

I have it like
Code:
KeepAlive got on 60 
ReadTimeOut on 0
 
but i'm working od debian etch and i have the same problem. TFS looses connection after something about 24 hours sometimes even more. So probably the problem is somewehere in the configuration of TFS or mysql server. I'm working on it for about two weeks and i have no idea what to do now.

#BTW:
Now I know that if i set mysqlReadTimeout to lower value then the mysql is not loosing connection so fast.
I will try to set mysqlReadTimeout to 0 (mysqlReadTimeout = 0) and check what happens.
 
Last edited:
edit your mysql variables, BTW i lossed it just 1 time and was because of that and was when i had like 300 hrs uptime or so...
 
For me the problem comes pretty soon if there are many players online...
If there are only 10-20 players than there is nearly no problem...

Same by yours?
 
mysql_real_query(): SELECT `password` FROM `accounts` WHERE `id` = 5021057: MYSQL ERROR: Can't connect to MySQL server on 'localhost' (10056)
mysql_real_query(): SELECT `expires` FROM `bans` WHERE `type` = 1 AND ((860951870 & 4294967295 & `param`) = (`value` & `param` & 4294967295)) AND `active` = 1;: MYSQL ERROR: Bad handshake
 
Status
Not open for further replies.

Similar threads

Back
Top