title: I'm trying to connect to a Google cloud SQL instance from NodeJS with the following code
body: <pre><code>var con = mysql.createPool({
     password:process.env.GOOGLE_SQL_PASSWORD,
     user:process.env.GOOGLE_SQL_USER,
     database :process.env.GOOGLE_SQL_DATABASE,
     //port:3306, 
     //host: 'localhost' 
   socketPath:'/cloudsql/process.env.GOOGLE_INSTANCE_NAME
  });
  
  </code></pre>
  
  <p>Trying to use a socket throws the error ACCESS DENIEL FOR USER ROOT@CLOUDSQL35.125.**** (USING PASSWORD :NO) , </p>
  
  <p>I can connect from my local machine (using the command line) to Google cloud sql successfully and see my database and tables and use it. 
  But when I deployed the app it will be showing access deniel for user in the error log and internal server error in my browser. 
  What do I miss?</p>