-1

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.

JoeCodes
  • 35
  • 6
  • 1
    I provided you with an answer and documentation. The proxy file is not located in the Windows PATH or in the local directory `.\\`. Copy the file to a directory in your PATH or specify the full path name. – John Hanley Oct 07 '22 at 22:47

1 Answers1

1

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

John Hanley
  • 74,467
  • 6
  • 95
  • 159