Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
Working from home

Jero Soler jerosoler

:octocat:
Working from home
View GitHub Profile
@jerosoler
jerosoler / app.js
Created Jan 3, 2018
Node mysql auto connect and close
View app.js
var mysql = require('mysql');
var db_config = {
host : 'localhost',
user : 'usuario',
password : 'password',
database : 'ddbb'
};
var connection = {};