MariaDB

MariaDB 的库是 mariadb.

  1. const sequelize = new Sequelize('database', 'username', 'password', {
  2. dialect: 'mariadb',
  3. dialectOptions: {connectTimeout: 1000} // mariadb 连接参数
  4. })

或使用连接字符串:

  1. const sequelize = new Sequelize('mariadb://user:password@example.com:9821/database')