user3169
0
Q:

interact with databse java

const mysql = require('mysql');

const con = mysql.createConnection({
  
  host: "localhost",
  user: "yourusername",
  password: "yourpassword"

  });

con.connect(function(err) {
  if (err) throw err;
  console.log("Connected!");
});
0

New to Communities?

Join the community