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?
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 => true]
© 2022 - 2024 — McMap. All rights reserved.
MariaDB-server-10.2.31-1.el7.centos.x86_64
->MariaDB-server-10.2.35-1.el7.centos.x86_64
. Might there be some similarity? – Parlandosystemctl stop mariadb
,apt remove mariadb-server
and all other installed packeages mariadb*, install old versionsudo apt install mariadb-server=1:10.4.15+maria~focal
and all other related packages with =version add to end, you must specify all packages mannualy. Test it withsudo apt install -s mariadb-server=1:10.4.15+maria~focal
to see if version are ok on other depended packages. – Schematize