Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var mysql = require("mysql");
- //Database connection
- app.use(function(req, res, next){
- global.connection = mysql.createConnection({
- host : 'localhost',
- user : 'root',
- password : ' ',
- database : 'test'
- });
- connection.connect();
- next();
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement