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.
Asked
Active
Viewed 804 times
-1

JoeCodes
- 35
- 6
-
1I 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 Answers
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
.

John Hanley
- 74,467
- 6
- 95
- 159
-
I have tried that, any other suggestions as I think it has to do with the command itself? – JoeCodes Oct 07 '22 at 22:47
-