title: non-Google MySQL database connection with firebase cloud function
body: <p>When i try to connect to my MySQL, server sends me an error <code>Error: connect ETIMEDOUT</code></p>
  
  <p>Here is sample code</p>
  
  <pre><code>const mysql = require('mysql');
  const mysqlConfig = {
          connectionLimit: 1,
          host: "remote_host_ip",
          user: "server_user",
          password: "server_pass",
          database: "server_db",
          port: 3306
      };
      mysql.createConnection(mysqlConfig).connect(function (err) {
          if (!err) {
              console.log("Database is connected");
          } else {
              console.log("Database is not connected " + err);
          }
      });
  </code></pre>
  
  <p>I am on firebase blaze(pay as you go) plan.</p>