如何上传Laravel项目到共享主机没有问题

时间:2017-07-09 12:24:09

标签: php laravel hosting

我使用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)

1 个答案:

答案 0 :(得分:1)

此问题出现在免费共享主机的数据库引擎中

例如在000webhost:

修改config/database.php

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