Warning: Packets out of order. Expected 8 received 0

环境:linux+mycat+hyperf+es

原因:mycat进行了分片

解决:

修改文件路径:/vendor/hyperf/database/src/Connectors/Connector

将PDO::ATTR_EMULATE_PREPARES => false,

改为PDO::ATTR_EMULATE_PREPARES => true

    protected $options = [
        PDO::ATTR_CASE => PDO::CASE_NATURAL,
        PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
        PDO::ATTR_ORACLE_NULLS => PDO::NULL_NATURAL,
        PDO::ATTR_STRINGIFY_FETCHES => false,
        //PDO::ATTR_EMULATE_PREPARES => false,
        PDO::ATTR_EMULATE_PREPARES => true,
    ];
上一篇:OData metadata 定义中,entity type key 的作用是什么


下一篇:L1-069 胎压监测