google-app-engine


Connection refused - Connecting to Google Cloud SQL


I have a Laravel 5.3 application which I have deployed using Google Application Engine. However, when I query my database, I am faced with the following error:
SQLSTATE[HY000] [2002] Connection refused (SQL: select * from `users` where `email` = test+support#loungeroom.nl limit 1)
My app.yaml file contents are as follows:
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: pass
beta_settings:
cloud_sql_instances: zoho-portal-159018:us-central1:zoho-portal
I have followed all the steps listed in this tutorial. I have also ensured that my Cloud SQL API is enabled.

Related Links

[google-app-engine]Cron Error - Launching tasks every few seconds instead of the specified frequency
Deferred API calls don't seem to run on normal front end instances
full implementation of pagination using cursors
Nested structs on GAE datastore using Go
When doing a non ancestor query with a sort by key, will my result be ordered by entity groups?
JPA#Google App Engine: JPQL SELECT queries always return empty results
How do I ensure consistency between MemCache and Datastore on GAE?
Google App Engine routing and pathing
jinja2 template inheritance sample does not work
Debug google app engine project line by line
Pricing for Google App Engine with Custom SSL
GAE (JPA) add database entry manually
App Engine, JDO and Maven. Error on startup
Cant write cookies on live instance of google appengine
Google App Engine - Retrieving Parameters from URI in a doGet()?
How to detect if entity has no attribute (not model) in Google App Engine

Categories

HOME
asp.net-web-api
embedded
phantom-dsl
awk
angular2-material
saml-2.0
knitr
static-site
mips
onclick
python-multithreading
character
mql5
categorical-data
heap
cmdb
datastage
stellar.js
http-post
gruntfile
red5
git-extensions
libigl
resourcebundle
gmock
maze
surveymonkey
android-things
vex
alm
postback
complex-numbers
left-join
linkedhashmap
keras-layer
openwhisk
dynamic-jasper
carriage-return
apic
parse-tree
tex
z-notation
google-data-api
mongoose-schema
lpsolve
show-hide
jquery-ui-draggable
page-replacement
oracleclient
ampps
rxtx
pytables
reporting-services-2012
rspec2
vorpal.js
spreadjs
sklearn-pandas
pushbots
maybe
oracle-spatial
ess
flock
poppler
pax-exam
rpart
amiga
pyobjc
nutiteq
bufferedinputstream
xmltype
jbake
filesplitting
spy++
rmysql
lambda-architecture
codeplex
ray
dot42
clickbank
visual-studio-express
http-patch
jeromq
process-explorer
windows-98
chart-director
garbage
stress
flex-mobile
mysql-error-1205
automationelement
exponentiation
mtu
presentation-layer
updatesourcetrigger
easyb
lxr
lemmatization

Resources

Encrypt Message