Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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!");
});
Source by www.codegrepper.com #
 
PREVIOUS NEXT
Tagged: #interact #databse #java
ADD COMMENT
Topic
Name
6+8 =