Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //DATABASE
- var mysql = require('mysql');
- var conn_conf = {
- host : 'localhost',
- user : 'root',
- password : 'MYPASSWORD',
- database : 'plugdj'
- };
- var connection = mysql.createConnection(conn_conf);
- 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