Installing MongoDB 2.6 and Setting up Root User Login

mongoI recently started using MongoDB and I was struggling setting up the equivalent of a root user and other users in traditional SQL databases. MongoDB comes with authentication turned off out of the box, so in order to use the password challenge authentication, we have to create the root user followed by enabling the authentication. In this tutorial, we will cover that as well as installing MongoDB on Ubuntu.

Continue reading