一般错误:1835格式错误的通信数据包 [英] General error: 1835 Malformed communication packet
本文介绍了一般错误:1835格式错误的通信数据包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
突然我的Laravel Web应用程序中出现此错误.
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?
推荐答案
参考另一篇文章,我在数据库连接中添加了以下内容,并且现在可以正常使用.
With reference to another post, I have added the below line in db connection and its working for now.
'options'=>[PDO :: ATTR_EMULATE_PREPARES =>是]
'options' => [PDO::ATTR_EMULATE_PREPARES => true]
这篇关于一般错误:1835格式错误的通信数据包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文