I start my server, login correctly, and start playing. After an hour or so, if I try to logout, the command console says DB Error, Mysql server has gone away.
I tried googling and found that this variable in mysql database might be at fault:
SHOW VARIABLES LIKE'wait_timeout';
In my server, it shows that it is only 7800 instead of the default 28800. So I asked my server provider to change it and he said he cannot.
So, I guess i need to find other solutions...
Maybe Charserv and Loginserv keep pinging the database to keep it alive?
I tried googling again and found this on one of the rathena source branches in google.
// Interval (in hours) at which servers do a ping on all sql-connections
// to keep them alive (the default mysql settings makes a connection time-out
// after 8 hours of inactivity).
// 0 disables (default). Enable it only if you are getting
// "MySQL server has gone Away" errors due to lack of activity on your server
connection_ping_interval: 7
then I checked my inter_athena.conf and does not have that line, so I added it.
Unfortunately, it did not work. It has no effect whatsoever
So, again, I need to ask if any other file has something like this to keep Db alive?
Or again, maybe another solution for this problem?
Im thinking... maaybe a cronjob that stops loginserv and charserv and restarts it every hour?
Question
Hirox
So, Im having this problem:
I start my server, login correctly, and start playing. After an hour or so, if I try to logout, the command console says DB Error, Mysql server has gone away.
I tried googling and found that this variable in mysql database might be at fault:
SHOW VARIABLES LIKE 'wait_timeout';
In my server, it shows that it is only 7800 instead of the default 28800. So I asked my server provider to change it and he said he cannot.
So, I guess i need to find other solutions...
Maybe Charserv and Loginserv keep pinging the database to keep it alive?
I tried googling again and found this on one of the rathena source branches in google.
https://code.google....=svn9728&r=9728
on File inter_athena.conf
then I checked my inter_athena.conf and does not have that line, so I added it.
Unfortunately, it did not work. It has no effect whatsoever
So, again, I need to ask if any other file has something like this to keep Db alive?
Or again, maybe another solution for this problem?
Im thinking... maaybe a cronjob that stops loginserv and charserv and restarts it every hour?
Bump, anyone havin this issue too?
Edited by HiroxLink to comment
Share on other sites
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.