E_WARNING: Error while sending STMT_PREPARE packet. PID=*

前端 未结 4 724
一个人的身影
一个人的身影 2021-02-05 17:32

As of 2019-01-30 14:52 UTC, you can still win the 500-point Bounty because none of the answers have helped!

My Laravel 5.7 website has been experiencing a few problems

4条回答
  •  天涯浪人
    2021-02-05 17:57

    If you see this message randomly, possible reasons:

    1. Your MySQL is behind a proxy, and they are using different timeout config.

    2. You are using PHP's persist connection.

    You may try to dig into the problem by these steps:

    1. Make sure your connections to MySQL have long enough timeout (eg: proxy setting, MySQL's wait_timeout / interactive_timeout)

    2. Disable the persist connection at PHP side.

    3. Do some tcpdump if you can to see what happend when you got the error message.

提交回复
热议问题