title: ETIMEDOUT while connecting remote mysql database from node.js app on heroku server
body: <p>Example of the code I use:</p>
  <pre><code>const connection = mysql.createPool({
      host: process.env.NEXT_DB_HOST, //*******.timeweb.ru
      database: process.env.NEXT_DB_DATABASE, //c*****_tech
      user: process.env.NEXT_DB_USER, //c*****_tech
      password: process.env.NEXT_DB_PASSWORD, //******
      waitForConnections: true,
      connectTimeout: 100000,
      connectionLimit: 10,
      queueLimit: 0
  });
  
  connection.query(
      &quot;SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE'&quot;,
      (err, results, fields) =&gt; {
           if(err) console.log(err);
           console.log(results);
           console.log(fields);
      }
  );
  </code></pre>
  <p>All vars are added in heroku. Also the domain is added to timeweb panel as &quot;Access db point&quot;. I know that heroku has dinamic IP, so how can I connect remote db?</p>