MySQL

In order to get Sequelize working nicely together with MySQL, you'll need to installmysql2@^1.5.2or higher. Once that's done you can use it like this:

  1. const sequelize = new Sequelize('database', 'username', 'password', {
  2. dialect: 'mysql'
  3. })

Note: You can pass options directly to dialect library by setting thedialectOptions parameter.