title: What is the connection string for Google Cloud mySQL, in node.js?
body: <p>The scenario is as follows:
  I am writing an node.js app locally and want it (the mySQL modul, rather) to connect to a mySQL db running on Google Cloud Platform. </p>
  
  <p>I can not get the connection string right and keep getting errors. GCP holds two names for the database - one i picked, one generated, more complex. Problably I should supply one of these into the connection string as "database", the host is likely the IP address with port (or not(?)), I am not sure what the "user" should be, or if it is necessary. Not enough info on the GCP help pages or elsewhere.</p>
  
  <p><strong>tl;dr:</strong> I need the following to connect a node.js app with a mySQL module remotely to a GCP database:</p>
  
  <pre><code>var con = mysql.createConnection({
    host:"11.222.333.444:3306",
    user: "me"
    password:"passwo3d",
    database:"projectname-1528892969949:europe-west5:dbname"
  });
  </code></pre>
  
  <p>Thank you!</p>