first
This commit is contained in:
parent
08af0188cd
commit
f20e465dc1
1 changed files with 12 additions and 0 deletions
12
Backend/config/mysqlConnect.js
Normal file
12
Backend/config/mysqlConnect.js
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
const mysql = require('mysql2');
|
||||
|
||||
const config = require('../config/config.json');
|
||||
|
||||
const pool = mysql.createPool({
|
||||
host: config.host,
|
||||
user: config.user,
|
||||
database: config.database,
|
||||
password:config.password
|
||||
});
|
||||
|
||||
module.export = pool.promise();
|
||||
Loading…
Add table
Add a link
Reference in a new issue