Advertisement
Guest User

Untitled

a guest
May 6th, 2015
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. //DATABASE
  2. var mysql = require('mysql');
  3. var conn_conf = {
  4. host : 'localhost',
  5. user : 'root',
  6. password : 'MYPASSWORD',
  7. database : 'plugdj'
  8. };
  9.  
  10. var connection = mysql.createConnection(conn_conf);
  11. connection.connect(function(err){if(err) console.log("Couldn't connect to the DB");else{console.log("Connected to " + conn_conf.database)}});
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement