node mydsl
const mysql = require("mysql");
const db = mysql.createConnection({
host: "localhost",
user: "root",
password: "",
database: "dbname",
charset: "utf8mb4_bin"
});
db.connect(err => {
if(err) throw err;
});
module.exports = db;
Heenok