商城后端模板
This commit is contained in:
17
config/config.js
Normal file
17
config/config.js
Normal file
@@ -0,0 +1,17 @@
|
||||
const mysql = require('mysql2')
|
||||
|
||||
const sql = {
|
||||
createConnection() {
|
||||
return mysql.createPool({
|
||||
connectionLimit: 10,
|
||||
host: '114.55.111.44',
|
||||
user: 'test_mao',
|
||||
password: 'nK2mPbWriBp25BRd',
|
||||
database: 'test_mao',
|
||||
charset: 'utf8mb4',
|
||||
multipleStatements: true
|
||||
|
||||
})
|
||||
}
|
||||
}
|
||||
module.exports = sql
|
||||
Reference in New Issue
Block a user