var mysql = require('mysql');
var con = mysql.createConnection({ host: "localhost", user: "admin", password: "admin" });
con.connect(function(err) {
if (err)
throw err;
console.log("Connected!");
con.query("CREATE DATABASE cprogramcodes", function (err, result) {
if (err)
throw err;
console.log("Database created");
});
});
No comments:
Post a Comment