From c06fa75d7ef2c2ecc6ca5c9012b2b48e0b74e090 Mon Sep 17 00:00:00 2001 From: Lei OT Date: Mon, 9 Sep 2024 11:31:21 +0800 Subject: [PATCH] conf: DB --- server/config/db.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/server/config/db.js b/server/config/db.js index a054bdb..147f62a 100644 --- a/server/config/db.js +++ b/server/config/db.js @@ -5,8 +5,8 @@ const { Sequelize, DataTypes, Op } = require('sequelize'); * 配置数据库 * */ -const testDB = new Sequelize('hotel_hub', 'admin', 'admin', { - host: 'localhost', +const testDB = new Sequelize('hotel_hub_p', 'admin', 'admin', { + host: '202.103.68.93', dialect: 'mysql', // operatorsAliases: false, // operatorsAliases: 0, @@ -26,8 +26,9 @@ const testDB = new Sequelize('hotel_hub', 'admin', 'admin', { timezone: '+08:00', //东八时区 }); -const DB = new Sequelize('hotel_hub_p', 'admin', 'admin', { - host: 'localhost', +const DB = new Sequelize('hotel_hub', 'root', 'C2BKVo7eyg^^NZ4s', { + host: '202.103.69.110', + port: 33001, dialect: 'mysql', // operatorsAliases: false, dialectOptions: {