google-app-engine


Connecting to Google Cloud SQL from External Applications


I've followed the instruction: https://cloud.google.com/sql/docs/external
STEP1. $ chmod +x ~/GCP/cloud_sql_proxy
STEP2. $ gcloud auth application-default login
STEP3. $ ./cloud_sql_proxy -instances=[INSTANCE_CONNECTION_NAME]=tcp:3306 -credential_file=[PATH_TO_KEY_FILE]
I got 2016/12/15 19:55:44 Ready for new connections
STEP4. $ mysql -u root -h 127.0.0.1 -p
But I got the following error in the Terminal;
2016/12/15 23:51:20 New connection for "[INSTANCE_CONNECTION_NAME]"
2016/12/15 23:51:20 Thottling refreshCfg([INSTANCE_CONNECTION_NAME]): it was only
called 23.918136971s ago
2016/12/15 22:08:26 couldn't connect to "[INSTANCE_CONNECTION_NAME]":
Post https://www.googleapis.com/sql/v1beta4/projects/{PROJECT_ID]/
instances/[INSTANCE_NAME]/createEphemeral?alt=json: private key should be a PEM or
plain PKSC1 or PKCS8; parse error: asn1: syntax error: sequence truncated
ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial
communication packet', system error: 0
I am stuck here.
Appreciate for all your help.
Did you create a service account with Editor role and download the private key?

Related Links

Google App Engine logout url
django-nonrel google app engine order_by('?')
Trouble while sending Email using Google App Engine to Verizon (vtext.com)
Keeping track of time with 1 second accuracy in Google App Engine
Developing for Google App Engine and using the datastore
GAE Datastore: “total” property vs. adding up line items?
Business intelligence on Google App Engine
Why GAE ChannelAPI Socket.open() fails?
Modifying GAE Django to Expand the API Scope on User Login
GWT: Where (how) to define POJOs to make em available for client and server? (and to use datastore on serverside)
Google App Engine Always On feature
Google App Engine: How to create sub domain/ sub directory
Securing Google App Engine Authsub callback url ('next_url')
Browser-based strategy game in Django/GAE. Model suggestions?
Setting GTalk status using Java - GAE/J
GWT RPC method name at App Engine server log

Categories

HOME
android
service-worker
phantom-dsl
grok
fpga
formal-languages
jax-rs
mjml
angular2-material
youtube-data-api-v3
components
composite-primary-key
package
google-cloud-functions
aws-cli
google-apps
cakephp-3.4
zip
polling
angularfire2
elasticsearch-5
vimdiff
alamofire
naivebayes
nancy
radgridview
onedrive-api
flatpak
android-intent
job-scheduling
standards
red5
wolframalpha
mapstruct
swagger-2.0
href
interpreter
moses
jquery-multiselect
outliers
8051
jaws
finagle
git-squash
erb
card.io
hunspell
video-capture
raft
node-mssql
unordered-map
comparison-operators
watchface
apollostack
pom.xml
openal
opennms
globalize
bluez
x-ray
aquamacs
pair-programming
opengl-4
avx
otp
er-diagram
monkey
objectscript
choice
materialized-path-pattern
avspeechsynthesizer
aurora
html-to-pdf
user-management
concurrentmodification
dynamics-nav-2016
video-player
apache-commons-daemon
fits
adehabitathr
execve
android-cookiemanager
uncaught-typeerror
contrast
metatrader5
genymotion-call
encryption-asymmetric
mobility
ora-00904
buffering
drupal-nodes
sphinxql
insert-id
server-administration
chart-director
apache-abdera
tree-balancing
veracity
window-decoration
stress
mbeans
cuteeditor
msr
drupal-fivestar
xslcompiledtransform

Resources

Encrypt Message