title: ENOENT when connecting to Google Cloud SQL from App Engine
body: <p>I'm trying to deploy my Node.js app on Google App Engine and it deployed fine, but it can't connect to Google Cloud SQL for some reason. Here's what it throws:</p>
  
  <pre><code>Error: connect ENOENT /cloudsql/my-project-id:asia-east1:my-sql-instance
  </code></pre>
  
  <p>Here's how I configured the connection:</p>
  
  <pre><code>if (process.env.INSTANCE_CONNECTION_NAME) {
       exports.mysqlConfig = {
           user: process.env.GCLOUD_SQL_USERNAME,
           password: process.env.GCLOUD_SQL_PASSWORD,
           socketPath: '/cloudsql/' + process.env.INSTANCE_CONNECTION_NAME
       }
  } else {
      // Use settings for localhost
  }
  </code></pre>
  
  <p>I'm using <code>node-mysql</code> module to connect to the database.</p>
  
  <p>The App Engine and Cloud SQL are already in the same project.
  My theory is that the App Engine and the Cloud SQL has to be in the same project <em>and</em> same region, but I'm not sure.</p>