const sequelize = new Sequelize( process.env.DATABASE, "root", process.env.PASSWORD, { dialect: "mysql", host: "localhost" } ); code example
Example: sequelize mariadb example
const sequelize = new Sequelize('database', 'username', 'password', {
dialect: 'mariadb',
dialectOptions: {
// Your mariadb options here
// connectTimeout: 1000
}
});