Hello Justin, Thank you for the reply.
I have updated my app.yaml file according to the guideline you linked. runtime: php env: flex runtime_config: document_root: public # required on some platforms so ".env" is not skipped skip_files: false env_variables: # The values here will override those in ".env". This is useful for # production-specific configuration. However, feel free to set these # values in ".env" instead if you prefer. APP_LOG: errorlog STORAGE_DIR: /tmp MYSQL_DSN: mysql:unix_socket=/cloudsql/zoho-portal-159018:us-central1:zoho -portal;dbname=zoho_portal MYSQL_USER: adeel MYSQL_PASSWORD: 118097 beta_settings: cloud_sql_instances: zoho-portal-159018:us-central1:zoho-portal However, I'm still getting the same error. Could there be anything else that I'm missing out? On Friday, April 28, 2017 at 6:13:59 PM UTC+5, Adeel Ahmad wrote: > > I have set up my Laravel 5.3 project on GAE using gcloud. My app.yaml file > looks like this: > > runtime: php > env: flex > > runtime_config: > document_root: public > > # required on some platforms so ".env" is not skipped > skip_files: false > > env_variables: > # The values here will override those in ".env". This is useful for > # production-specific configuration. However, feel free to set these > # values in ".env" instead if you prefer. > APP_LOG: errorlog > STORAGE_DIR: /tmp > MYSQL_DSN: mysql:unix_socket=/cloudsql/zoho-portal-159018:us-central1: > zoho-portal;dbname=zoho_portal > MYSQL_USER: USER > MYSQL_PASSWORD: PASS > > However, when I query my database using eloquent I receive this error: > > SQLSTATE[HY000] [2002] Connection refused > > > I followed this guideline: > https://cloud.google.com/sql/docs/mysql/connect-app-engine?hl=en_US&_ga=1.259065737.2061084871.1491404918 > > > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at https://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/fcef0e94-16d5-4512-b627-7108fbd2a093%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.