5

This is the command I run in my shell: ./cloud_sql_proxy -instaces=[my_project_id:europe-west3:my_project_name]=tcp=5432.

Sometimes i got the following errors messages:

  • CASE 1: flag provided but not defined: -instaces;

  • CASE 2: 2021/11/19 17:50:12 errors parsing config:

     mkdir my_project_id:europe-west3:my_project_name: The syntax of the file, directory, or volume name is incorrect.
     mkdir my_project_id:europe-west3:my_project_name-copy: The syntax of the file, directory, or volume name is incorrect.
    
2
  • 5
    You have typo. You should run ./cloud_sql_proxy -instances=my_project_id:europe-west3:my_project_name=tcp:5432
    – Hitobat
    Commented Nov 19, 2021 at 18:11
  • thank you. I am still studying how Google Cloud works, if you post your comment I will accept the answer
    – Enrico
    Commented Nov 19, 2021 at 22:10

1 Answer 1

4

Solved by running ./cloud_sql_proxy -instances=my_project_id:europe-west3:my_project_name=tcp:5432 in my shell.

2
  • Can you explain what is this =tcp:5432 weird syntax?
    – misha130
    Commented Oct 21, 2022 at 1:52
  • I honestly cannot, because I asked myself the same question. I don't remember how I did find this solution, but I remember it looked like some formatting error. I believe the "=" character, mixed up with the "[]" characters caused the error. DId you solve this?
    – Enrico
    Commented Feb 6, 2024 at 0:30

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.