Laravel 出现 Packets out of order. Expected 1 received 0. Packet size=103

Song200 次浏览0个评论2022年12月02日
Laravel 出现 Packets out of order. Expected 1 received 0. Packet size=103

mysql查询分区表,报错
[Illuminate\Database\QueryException]
Packets out of order. Expected 1 received 0. Packet size=103
这个时候将设置更改

PDO::ATTR_EMULATE_PREPARES => true,


补充一下目录地址

vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php


这里是查询带分区的表产生配置的问题
更多参考:PDOException: Packets out of order. Expected 0 received 1. Packet size=23

提交评论

请登录后评论

用户评论

    当前暂无评价,快来发表您的观点吧...

更多相关好文