agregar dialectOptions
const db2 = new Sequelize(database, username, password, {
host: hostname,
dialect: "mysql",
define: {},
dialectOptions: {
options: {
requestTimeout: 3000
}
},
pool: {
max: 10,
min: 0,
idle: 10000
},
});