var db = require('node-mysql'); var config = require('./config.json'); var vnConn = new db.DB({ host : config.mySqlHost, user : config.mySqlUser, password : config.mySqlPass, port: config.mySqlPort, database : config.mySqlDatabase }); exports.vnConn = vnConn;