后端链接数据库

This commit is contained in:
aixianling
2022-12-30 11:53:48 +08:00
parent cfaef6713b
commit cf5f60a049
8 changed files with 97 additions and 1 deletions

View File

@@ -0,0 +1,19 @@
exports.keys = "kubbo and flora"
exports.mysql = {
client: {
// host
host: '192.168.1.87',
// 端口号
port: '3306',
// 用户名
user: 'root',
// 密码
password: 'Cwy@2019',
// 数据库名
database: 'dvcp_oms_dev',
},
// 是否加载到 app 上,默认开启
app: true,
// 是否加载到 agent 上,默认关闭
agent: false,
}

4
server/config/plugin.js Normal file
View File

@@ -0,0 +1,4 @@
exports.mysql = {
enable: true,
package: 'egg-mysql'
}