Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const mysql = require("mysql");
- var con = mysql.createConnection({
- host: "localhost",
- user: "root",
- password: "root",
- database: "test"
- });
- con.connect(err => {
- if(err) throw err;
- console.log("Connected To Database!");
- con.query("SHOW TABLES", console.log);
- });
Add Comment
Please, Sign In to add comment