#2006: MySQL server has gone away

Username (e.g. epiz_XXX) or Website URL

epiz_28965074

sql109.epizy.com

Error Message

#2006 MySQL server has gone away.

Long picture from phpMyAdmin


I sifted through the forum, but found nothing up-to-date or relevant.

I don’t use WordPress, I write my own code.

This error came from phpMyAdmin when executing a query which I have successfully executed before there. The query also works in php mysqli.

Try again after some hours, there is many reason that you could have getting that error that should be fixed after the wait and since you are able to run the query with php it shouldn’t be worrying.

Try the basics, such as clear your cache, use a different browser, use a VPN, ect.

According to the mysql dev site:
https://dev.mysql.com/doc/refman/8.0/en/gone-away.html#:~:text=The%20most%20common%20reason%20for,out%20and%20closed%20the%20connection.&text=By%20default%2C%20the%20server%20closes,See%20Section%205.1.
It states that this is because the connection has timed out. I am not very knowledgeable on MySQL, but something caused the server to time out from inactivity. The article has a suggested fix for changing the wait_timeout variable, but I don’t know if Infinityfree allows access to that. Instead, you could try googling answers for keeping a MySQL server open (or, when this happens, restart the connection).

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.