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");
});
});
28 Dec 2023
Node js to create the mysql Database
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment