const mysql = require("mysql2");
const pool = mysql.createConnection({
host: "localhost",
user: "root",
database: "name",
password: "password"
});
let reg = `INSERT INTO users(name) VALUES('name')`;
pool.query(reg, function(err, results) {
if(err) console.log(err);
});