明树Git Lab

Commit 0afa8810 authored by zhangqi's avatar zhangqi

需要mysql字段配置才能生效

parent 7ae205e0
......@@ -2,8 +2,8 @@
const { Sequelize } = require('sequelize');
// 创建 Sequelize 实例,连接数据库
const sequelize = new Sequelize(sysConfig.database || 'gzbjt', sysConfig.username || 'root', sysConfig.password ||'123456', {
host: sysConfig.host || 'localhost',
const sequelize = new Sequelize(sysConfig.mysql.database || 'gzbjt', sysConfig.mysql.username || 'root', sysConfig.mysql.password ||'123456', {
host: sysConfig.mysql.host || 'localhost',
dialect: 'mysql',
logging: false, // 显示日志(可选)
pool: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment