var mysql = require('mysql'); var con = mysql.createConnection({ host: "localhost", user: "myusername", password: "mypassword" }); con (function(err) { if (err) throw; console.log("Connected!");...

can you find the error ASAP?var mysql = require('mysql');<br>var con = mysql.createConnection({<br>host:

Extracted text: var mysql = require('mysql'); var con = mysql.createConnection({ host: "localhost", user: "myusername", password: "mypassword" }); con (function(err) { if (err) throw; console.log("Connected!"); /*Create a database named "mydb":*/ con. query ("CREATE DATABASE mydb", function ( result) { if (err) throw err; console.log("Database created"); }); });

Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here