title: Cannot connect to Cloud SQL Proxy
body: <p>I'm trying to use Cloud SQL Proxy for my Kubernetes project.</p>
  <p>I follow the guide of <a href="https://cloud.google.com/community/tutorials/elixir-phoenix-on-kubernetes-google-container-engine" rel="nofollow noreferrer">Elixir and Phoenix</a>. Under <strong>Connect to your Cloud SQL instance</strong>, that guide says that running <code>cloud_sql_proxy -dir=/tmp/cloudsql</code> and <code>psql -h /tmp/cloudsql/[CONNECTION-NAME] -U postgres</code> will open the proxy.</p>
  <p>So I tried to make a new directory with these commands below.</p>
  <pre><code>mkdir -p /tmp/cloudsql
  chmod +x /tmp/cloudsql
  </code></pre>
  <p>and then I tried to connect to Cloud SQL Proxy.</p>
  <pre><code>cloud_sql_proxy -dir=/tmp/cloudsql/                16:47
  2020/10/30 16:47:50 Rlimits for file descriptors set to {&amp;{xxxx xxxxxxxxxxxxxxxxxxx}}
  2020/10/30 16:47:51 Using gcloud's active project: [instance-id]
  2020/10/30 16:47:54 Listening on /tmp/cloudsql/instance-id:region:instance-name for instance-id:region:instance-name
  2020/10/30 16:47:54 Ready for new connections
  </code></pre>
  <p>To connect the proxy, I opened another terminal and entered this <code>psql</code> command but failed.</p>
  <pre><code>psql -U postgres -h /tmp/cloudsql/instance-id:region:instance-name
  psql: error: could not connect to server: could not connect to server: Not a directory
      Is the server running locally and accepting
      connections on Unix domain socket &quot;/tmp/cloudsql/instance-id:region:instance-name/.s.PGSQL.5432&quot;?
  </code></pre>
  <p>What should I do additionally for connecting to the proxy?</p>