title: How do I create a MySQL connection pool while working with NodeJS and Express?
body: <p>I am able to create a MySQL connection like this:</p>
  
  <pre><code>var mysql      = require('mysql');
  var connection = mysql.createConnection({
      host     : 'localhost',
      user     : 'me',
      password : 'secret',
      database : 'my_db'
  });
  
  connection.connect();
  </code></pre>
  
  <p>But I would rather like to initiate a pool and use it across my project.</p>