我使用laravel 5.2,我已经构建了一个小应用程序,我只想将其上传到共享主机 我试过000webhost和byethost,我遇到了像
这样的问题Wrong COM_STMT_PREPARE response size. Received 7
Whoops, looks like something went wrong.(in two lines without explanation the problem)
答案 0 :(得分:1)
此问题出现在免费共享主机的数据库引擎中
例如在000webhost:
中修改config/database.php
:
'mysql' => [
'driver' => 'mysql',
'host' => env('DB_HOST', 'localhost'),
//.......
'options' => [PDO::ATTR_EMULATE_PREPARES => true,]
],