问题
Suddenly I got this error in my Laravel web application.
PDOException in MySqlConnector.php line 38:
SQLSTATE[HY000]: General error: 1835 Malformed communication packet
Can you help me out to solve this?
回答1:
With reference to another post, I have added the below line in db connection and its working for now.
'options' => [PDO::ATTR_EMULATE_PREPARES => true]
来源:https://stackoverflow.com/questions/64677005/general-error-1835-malformed-communication-packet