title: Getting notAuthorized error with cloud_sql_proxy locally
body: <p>I'm trying to setup a connection locally for 2nd generation cloud sql instance.</p>
  
  <p>Call for the proxy is</p>
  
  <pre><code>./cloud_sql_proxy -dir=/cloudsql -instances=status-1268:us-central1:status-dev=tcp:3306 &amp; mysql -u status_stg --host 127.0.0.1
  </code></pre>
  
  <p>I am a bit unclear on how to set up correctly the service accounts from the API section, so I tried with both of the defaults, App engine default service account and Compute engine default service account. I also created a new one service account. For each one of them I assigned the service account ID to be Editor and Owner from the manage permissions section. Perhaps there is another way to enable Cloud SQL Admin API for these accounts?</p>
  
  <p>Output from proxy when my service tries to talk to DB:</p>
  
  <pre><code>./cloud_sql_proxy -dir=/cloudsql -instances=status-1268:us-central1:status-   dev=tcp:3306 &amp; mysql -u status_stg --host 127.0.0.1
  ERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1' (61)
  2016/04/04 11:26:58 Open socket for "status-1268:us-central1:status-dev" at     "127.0.0.1:3306"
  2016/04/04 11:26:58 Socket prefix: /cloudsql
  2016/04/04 11:27:10 Got a connection for "status-1268:us-central1:status-dev"
  2016/04/04 11:27:11 couldn't connect to "status-1268:us-central1:status-dev": googleapi: Error 403: The client is not authorized to make this request., notAuthorized
  2016/04/04 11:29:08 Got a connection for "status-1268:us-central1:status-dev"
  2016/04/04 11:29:08 couldn't connect to "status-1268:us-central1:status-dev": googleapi: Error 403: The client is not authorized to make this request., notAuthorized
  </code></pre>
  
  <p>Thoughts on what to look for? I think I am missing something basic here configuring the service accounts.</p>
  
  <p>(Overall, for my project I am running a node.js express app and hoping to connect it to 2nd gend cloud sql DB instance without having to expose it with 0.0.0.0 as I currently have working)</p>
  
  <p>Thanks</p>