Jump to content
  • 0

mysql server is always disconnected


Petey Pablo

Question


  • Group:  Members
  • Topic Count:  152
  • Topics Per Day:  0.03
  • Content Count:  569
  • Reputation:   11
  • Joined:  11/24/11
  • Last Seen:  

how to fix mysql server has gone away?(Always disconnected) See the image below. Im using CentOS 6 64bit.

ori7nq.jpg

Link to comment
Share on other sites

7 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  331
  • Reputation:   63
  • Joined:  11/29/11
  • Last Seen:  

Maybe you have offloaded sql or mysql timeout time is too less.(no activity in mysql for long time)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  152
  • Topics Per Day:  0.03
  • Content Count:  569
  • Reputation:   11
  • Joined:  11/24/11
  • Last Seen:  

Maybe you have offloaded sql or mysql timeout time is too less.(no activity in mysql for long time)

How to set or configure properly for offloaded sql or mysql timeout time?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

How much RAM does your server have?

free -m

Is MySQL Server running on the same machine or a separate VPS?

What is the 'wait_timeout' config on your MySQL Server?

(connect to MySQL and execute this query)

SHOW VARIABLES LIKE 'wait_timeout';

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  152
  • Topics Per Day:  0.03
  • Content Count:  569
  • Reputation:   11
  • Joined:  11/24/11
  • Last Seen:  

How much RAM does your server have?

free -m

Is MySQL Server running on the same machine or a separate VPS?

What is the 'wait_timeout' config on your MySQL Server?

(connect to MySQL and execute this query)

SHOW VARIABLES LIKE 'wait_timeout';

MySQL is running on same machine. For the RAM? See the image below

nd8kyh.jpg

For the wait_timeout. See the image below

fedoa1.jpg

Edited by WillSuranol
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

hmm both look fine to me: 2 GB ram and 8 hours wait_timeout (the default).

I don't know what could be causing it.

If you have a separate machine, or even your own computer to test on, can you run rAthena and see if you get "MySQL Server has gone away" ?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  1479
  • Reputation:   172
  • Joined:  12/14/11
  • Last Seen:  

I don't know but seems that if there's nothing to do, rA server will ping the MySQL server to keep him alive..

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...