我有一个Laravel应用我试图迁移到Google Cloud。我已经在App Engine上设置了它,但每当我尝试访问任何需要数据库连接的非静态页面时,应用程序都会抛出以下错误:
2017-08-02 10:21:18,983 INFO _FILE_ONLY _ 2017-08-02 08:21:12 默认[20170802t095328] [02-Aug-2017 08:21:12]警告:[pool app] 孩子62对stderr说:"注意:PHP消息:[2017-08-02 08:21:12] production.ERROR:PDOException:SQLSTATE [HY000] [2002] Connection 超时时间 /app/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:43"
2017-08-02 10:21:18,984 INFO _FILE_ONLY _ 2017-08-02 08:21:12 默认[20170802t095328] [02-Aug-2017 08:21:12]警告:[pool app] 孩子62对stderr说:"堆栈追踪:"
2017-08-02 10:21:18,986 INFO _FILE_ONLY _ 2017-08-02 08:21:12 默认[20170802t095328] [02-Aug-2017 08:21:12]警告:[pool app] 孩子62对stderr说:"#0 /app/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php(43): PDO-> __构造(' mysql:host = 35.1 ...',' my_db_user',' my_db_pass', 阵列)"
任何帮助解决它将非常感谢。谢谢!