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 folder
Then I go to the windows command prompt and go to the folder C:\cloudsql
Now 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.1
I 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:
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 regards
Jorg