Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
339 B
2
Indexable
Never
const mysql = require("mysql");

const host = process.env.MYSQL_HOST;
const user = process.env.MYSQL_USER;
const password = process.env.MYSQL_PASSWORD;
const database = process.env.MYSQL_DATABASE;

db = mysql.createConnection({
  host: host,
  user: user,
  password: password,
  database: database,
});

module.exports=db;
Leave a Comment