Compare commits
2 Commits
d93bfe172b
...
8f8897338a
| Author | SHA1 | Date | |
|---|---|---|---|
| 8f8897338a | |||
| 6e3abf3835 |
8
db.js
8
db.js
@ -28,9 +28,9 @@ const db = require("mariadb");
|
||||
// create pool
|
||||
const pool = db.createPool({
|
||||
connectionLimit : 10,
|
||||
host : 'localhost',
|
||||
user : 'user',
|
||||
password : '',
|
||||
host : 'db-in-docker',
|
||||
user : 'root',
|
||||
password : 'ncnu',
|
||||
database : 'scholarship'
|
||||
});
|
||||
|
||||
@ -56,4 +56,4 @@ module.exports = {
|
||||
console.error("error closing db connection : ", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user