From 63cab9875804585a4e1db05aa5ea55a93f55a085 Mon Sep 17 00:00:00 2001 From: wangxiaoxian <1094175543@qq.com> Date: Tue, 3 Mar 2026 14:24:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/db.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config/db.js b/config/db.js index e8b0201..cc20c7a 100644 --- a/config/db.js +++ b/config/db.js @@ -7,8 +7,8 @@ const createDatabase = async () => { // 连接到MySQL服务器 const connection = await mysql.createConnection({ host: 'localhost', - user: 'root', - password: '123456' + user: 'rentease', + password: 'Wxx@123!' }); // 创建数据库 @@ -42,8 +42,8 @@ const testConnection = async () => { // 重新创建sequelize实例,确保连接管理器是活跃的 const newSequelize = new Sequelize( 'rentease', // 数据库名称 - 'root', // 用户名 - '123456', // 密码 + 'rentease', // 用户名 + 'Wxx@123!', // 密码 { host: 'localhost', dialect: 'mysql',