const Sequelize = require('sequelize'),
sequelize = new Sequelize('first', 'mak', 'pass', {
dialect: 'mysql',
host: 'localhost'
});
sequelize
.authenticate()
.complete((err) => {
if (err) {
console.log('Ошибка подключения');
throw err;
} else {
console.log('Соединение установлено');
sequelize
.query('SELECT * FROM band', null, {raw: true})
.success((el) => {
console.log(el);
});
}
})