Larvel Database Connectivity Error

Wrong COM_STMT_PREPARE response size. Received 7

Hey there …I’m receiving the above error while trying to connect to database …im using larvel in my project …will it work in plans ? please help me to solve it …

Please contact laravel developers to see what the error is :slight_smile:

1 Like

It was working perfectly with the same script just few days before… Btw thanks…& Any other solution?

Have a look at this

Their solution was:
Solved this issue by setting the PDO attribute PDO::ATTR_EMULATE_PREPARES to true. you can add an option to your Database Connection under config/database.php.

'mysql' => [
    'driver' => 'mysql',
    'host' => env('DB_HOST', 'localhost'),
    //.......
    'options'   => [PDO::ATTR_EMULATE_PREPARES => true,]
],

Many users seems to have issues with Larvel Framework, because free hosting have limits.

Upgrading to premium will solve your issue,