1// Javascript connect to ddb:
2
3const mysql = require('mysql');
4
5const con = mysql.createConnection({
6
7 host: "localhost",
8 user: "yourusername",
9 password: "yourpassword"
10
11 });
12
13con.connect(function(err) {
14 if (err) throw err;
15 console.log("Connected!");
16});