Answer the question
In order to leave comments, you need to log in
General error: 2006 MySQL server has gone away on a resting WTF server?
I ran into a strange thing, I have a MySQL server installed on Windows Server 2019
There is no load on the server (because there is only 1 client there)
From time to time there is such a problem (I suspect that this happens when you do not access mysql for a long time - but this is not a confirmed fact).
The following error pops up:
General error: 2006 MySQL server has gone away
SELECT
*
FROM
`user` t0
WHERE
t0.m_code = ?
AND t0.is_verified = ?
LIMIT 1
"12c9fe68-c781-41a0-b686-9e116e828712", "1"
Answer the question
In order to leave comments, you need to log in
The muscle breaks the connection by timeout if there are no requests.
There are 2 solutions.
1. Ping the server with simple garbage requests once in a certain period of time.
2. Increase the timeout value in the config. Here it is described how to do it on linux
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question