MySQL

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:

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

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