daily pastebin goal
32%
SHARE
TWEET

Untitled

a guest Apr 28th, 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();
  10.  
  11. connection.query('SELECT * FROM recipient', function(err, rows, fields)
  12. {
  13.     if (err) throw err;
  14.  
  15.     console.log(rows[0]);
  16. });
  17.  
  18. connection.end()
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