Created
July 21, 2020 08:26
-
-
Save dev-sankhadip/2b5122c16b5c4d1d86a059253ab39219 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import mysql from 'mysql'; | |
import dotenv from 'dotenv' | |
dotenv.config(); | |
const connection = mysql.createPool({ | |
host: process.env.HOST, | |
user: process.env.USER, | |
password: process.env.PASSWORD, | |
database: process.env.DATABASE, | |
port: 3308, | |
connectionLimit: 10 | |
}) | |
export { | |
connection | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment