SQLSTATE[HY000]: General error: 1835 Malformed communication packet on LARAVEL

后端 未结 14 1602
温柔的废话
温柔的废话 2020-11-29 09:45

Suddenly got

SQLSTATE[HY000]: General error: 1835 Malformed communication packet (SQL: select * from tb_users where (username =

14条回答
  •  南方客
    南方客 (楼主)
    2020-11-29 10:25

    After many workarounds i tried today this the solutions i got

    1- upgrade to php 7.3 or 7.4
    (many websites will be down after php upgrades )

    2- downgrade to minor version ( mariadb 10.4.16 to 10.4.15)

    yum downgrade MariaDB-server MariaDB-common MariaDB-shared MariaDB-client MariaDB-compat MariaDB-devel    
    

    anyway this problem is opened case as bug for Mariadb last night update and they didnt push any fixing for now the above solution is only the 2 ways to solve the problem , it works with me on mariadb downgrade from 10.4.16 to 10.4.15 (minor downgrade)

提交回复
热议问题