Skip to content

Instantly share code, notes, and snippets.

var mysql = require('mysql');
var connection = mysql.createConnection({
host : 'localhost',
user : 'node-test',
password : '',
database : 'node_test'
});
exports.open = function (callback){
connection.connect(function(err){