SHARE
TWEET

Untitled

a guest Apr 29th, 2017 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var mysql = require('mysql');
  2.  
  3. var connection = mysql.createConnection({
  4.     host : 'localhost',
  5.     user : 'root',
  6.     password : '',
  7.     database : 'cs467'
  8. });
  9. connection.connect(function(err) {
  10.     if (err) {
  11.         console.error('error connecting: ' + err.stack);
  12.         return;
  13.     }
  14.  
  15.     console.log('connected as id ' + connection.threadId);
  16. });
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