JoeCodes
JoeCodes

Reputation: 35

Error running: .\cloud_sql_proxy.exe for cloud sql connection

I recently got into developing with google cloud. Currently, I am working on connecting my app's backend to cloud SQL. I attempted to use the cloud SQL proxy to connect but I feel a bit confused with it. When I run the command .\cloud_sql_proxy.exe -instances=INSTANCE_CONNECTION_NAME=tcp:5432 while replacing the connection name I get the error '.\cloud_sql_proxy.exe' is not recognized as an internal or external command, operable program or batch file. I have named the file to just cloud_sql_proxy.exe. I also attempted to use just cloud_sql_proxy.exe. But still to no effect.

Upvotes: -1

Views: 1490

Answers (1)

John Hanley
John Hanley

Reputation: 81434

When you download the Cloud SQL Proxy for Windows 64-bit, the file is named cloud_sql_proxy_x64.exe.

This first step is to copy the file to a location in your PATH or known directory and rename the file cloud_sql_proxy.exe.

Download and install the Cloud SQL Auth proxy for Windows

Upvotes: 1

Related Questions