Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

connect mysql to node js

var mysql = require('mysql');  
var con = mysql.createConnection({  
  host: "localhost",  
  user: "root",  
  password: "12345"  
});  
con.connect(function(err) {  
  if (err) throw err;  
  console.log("Connected!");  
});  
Source by www.javatpoint.com #
 
PREVIOUS NEXT
Tagged: #connect #mysql #node #js
ADD COMMENT
Topic
Name
9+9 =