SHARE
TWEET

Untitled

a guest Dec 31st, 2018 112 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var express = require('express'),
  2.     http = require('http'),
  3.     os = require('os'),
  4.     mysql = require('mysql');
  5.  
  6.  
  7. var app = express();
  8.  
  9. var con = mysql.createConnection({
  10.   host: "10.7.0.6",
  11.   port: 3306,
  12.   user: "root",
  13.   password: "secret",
  14.   database: "assignment2_test",
  15.   insecureAuth: true
  16. });
  17.  
  18. con.connect(function(err) {
  19.   if (err) throw err;
  20.   console.log("Connected!");
  21. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top