const http = require('http');
const mysql = require("mysql");
const connection = mysql.createConnection({
host : "localhost",
user : "root",
password : "password"
});
connection.connect(function(e) {
if(!!e) {
console.log(e);
}
else {
console.log("Connected");
}
});
http.createServer(function (req, res) {
res.write('Hello World!');
res.end();
}).listen(8080);