const mysql = require("mysql");
const mysqlDb = mysql.createConnection({
host: process.env.mysql_HOST || "localhost",
user: process.env.mysql_USER || "root",
password: process.env.mysql_PASSWORD || "",
database: process.env.mysql_DATABSE || "my_db"
});
mysqlDb.connect(err => {
if(err) throw err;
});
module.exports = mysqlDb;