config.js
395 字节
var Sequelize = require('sequelize');
//数据配置
var sequelize = new Sequelize('xin3m_saas', 'test_read', "test_read7", {
// var sequelize = new Sequelize('xuedianyun', 'root', "", {
//host:'localhost',
host:'rds9vo3ja79e62m0433jo.mysql.rds.aliyuncs.com',
dialect: 'mysql',
pool: {
max: 10,
min: 0,
idle: 1000
}
})
module.exports = sequelize