On Monday, October 30, 2017 at 5:58:52 PM UTC-4, Jörg Hartgen wrote:
Dear all,I'm trying to connect from an external Windows 10 client to CloudSQL (MySQL) and get stuck in the authentification process.What I did so far:- Created a folder "C:\cloudsql"- put the private key "xxx-project-24178a0daa8g.json" into this folder - put the file "cloud_sql_proxy.exe" into this folderThen I go to the windows command prompt and go to the folder C:\cloudsqlNow I try to start the proxy by the following command. To do this I follow the example from the following article:The example for windows is:cloud_sql_proxy.exe -instances=[INSTANCE_
CONNECTION_NAME ]=tcp:3306
mysql -u [USER_NAME] --host 127.0.0.1I wonder why in this example the path to the private key is not mentioned.So my command for starting the proxy is as follows:cloud_sql_proxy.exe -instances=xxx-project:europe-west3:xxx-instance=tcp:3306 mysql -u root --host 127.0.0.1 After hitting "enter" I get an error:" google: could not find default credentials. See https://developers.google.com/accounts/docs/application- for more information."default-credentials So I created the environment variable "GOOGLE_APPLICATION_CREDENTIALS" with the value of the path and filename of the private key. It's: "C:\cloudsql\xxx-project-24178a0daa8g.json" I still get the same message " google: could not find default credentials. See [...]".How can I start the proxy on a windows 10 client and use it for the connection to my cloud sql?Best regardsJorg
You received this message because you are subscribed to the Google Groups "Google Cloud SQL discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-sql-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-sql-discuss/bfb4835b-fc3f-4de2-96dc-85538bf9843b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment