My Laravel 5.7 website has been experiencing a few problems
If you see this message randomly, possible reasons:
Your MySQL is behind a proxy, and they are using different timeout
config.
You are using PHP's persist connection.
You may try to dig into the problem by these steps:
Make sure your connections to MySQL have long enough timeout (eg: proxy setting, MySQL's wait_timeout
/ interactive_timeout
)
Disable the persist connection at PHP side.
Do some tcpdump
if you can to see what happend when you got the error message.