opendarkeden / server

42 stars 32 forks source link

Server End problem #86

Closed Supacek closed 1 year ago

Supacek commented 1 year ago

While server is running like 12h and i come back from work ill try to log in and i get DC today i get DBerror.log

image

any idea why is server shuting down ???

NEW-BOY1 commented 1 year ago

I think you need it

show global variables like '%wait_timeout';

When you don't have connection after a certain period of time. Mysql will lose it

Supacek commented 1 year ago

I think you need it

show global variables like '%wait_timeout';

When you don't have connection after a certain period of time. Mysql will lose it

so today same problem .i get home try to login server boom image this happened

last log in loginserver is

Stmt [INSERT INTO LoginPlayerData (PlayerID,IP,Date,Time) VALUES ('admin','xxxxmyipadressxxxxx','2022-10-14','22:40:09')] Lost connection to MySQL server during query

image

Supacek commented 1 year ago

the server is running empty no one is online so thats the probmel maybe so i need change that time probly right ?

Supacek commented 1 year ago

image

NEW-BOY1 commented 1 year ago

图片

It has told you, lost the connection mysql

wait_timeout=2880000 interactive_timeout = 2880000 You could be longer this time

Supacek commented 1 year ago

图片

It has told you, lost the connection mysql

wait_timeout=2880000 interactive_timeout = 2880000 You could be longer this time

ill try

tiancaiamao commented 1 year ago

@NEW-BOY1 is right. The MySQL settings may cause inactive connection been kicked out, you need to change some configuration or global variables. @Supacek

Supacek commented 1 year ago

Fixed put times inzo mysql conf file..

Supacek commented 1 year ago

[mysqld] wait_timeout=2880000 interactive_timeout = 2880000

put it in mysql.cnf

Supacek commented 1 year ago

closed fixed