Skip to content

Instantly share code, notes, and snippets.

@hugeuser
Created February 28, 2014 14:52
Show Gist options
  • Save hugeuser/9272448 to your computer and use it in GitHub Desktop.
Save hugeuser/9272448 to your computer and use it in GitHub Desktop.
database connection
connection.connect(function(err){
if(err){
console.log(err);
} else {
console.log('The node server is now connected to ' + connection.config.host +
' via user ' + connection.config.user +' to the database '+connection.config.database);
}
});
module.exports = connection;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment