后端链接数据库
This commit is contained in:
19
server/config/config.default.js
Normal file
19
server/config/config.default.js
Normal 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
4
server/config/plugin.js
Normal file
@@ -0,0 +1,4 @@
|
||||
exports.mysql = {
|
||||
enable: true,
|
||||
package: 'egg-mysql'
|
||||
}
|
||||
Reference in New Issue
Block a user