数据库

This commit is contained in:
wangxiaoxian 2026-03-03 14:23:00 +08:00
parent cbcd2f2ee2
commit 92de056a8e
1 changed files with 4 additions and 4 deletions

View File

@ -25,8 +25,8 @@ const createDatabase = async () => {
// 创建数据库连接 - 使用MySQL // 创建数据库连接 - 使用MySQL
const sequelize = new Sequelize( const sequelize = new Sequelize(
'rentease', // 数据库名称 'rentease', // 数据库名称
'root', // 用户名 'rentease', // 用户名
'123456', // 密码 'Wxx@123!', // 密码
{ {
host: 'localhost', host: 'localhost',
dialect: 'mysql', dialect: 'mysql',