title: How to get the mysql connection for mysql-session (not the Sequelize instance)?
body: <p>I already have the Sequelize instance, but I need to get the mysql connection for mysql-session. </p>
  
  <p>This is how the Sequelize instance looks like:</p>
  
  <pre><code>var Sequelize = require('sequelize');
  
  var sequelize = new Sequelize( 'db_name', 'root', '',
      {
          host: 'localhost',
          dialect: 'mysql',
          pool: {
              max: 5,
              min: 0,
              idle: 10000
         }
      }
  );
  
  module.exports = sequelize;
  </code></pre>
  
  <p>I use Passport.js for the authentication system, but as database, I use mysql. Therefore, I am working with Sequelize module.</p>
  
  <p>I want to do something like this:</p>
  
  <pre><code>var connection = mysql.createConnection(options);
  var sessionStore = new MySQLStore({}/* session store options */, connection);
  </code></pre>
  
  <p>But since I use Sequelize, I do <em>not</em> want to use the <code>mysql.createConnection</code> method but to get the db connection object from the <code>sequelize</code> object (instance of <code>Sequelize</code>).</p>
  
  <p>How to get the <code>mysql</code> connection for <code>express-mysql-session</code> (not the Sequelize instance)?</p>