How to configure Mongodb authentication

22 Feb 2021

blog details

How to configure Mongodb authentication

By: RSDigitech | Published At : 22 Feb 2021    


Steps to configure Mongo DB:

It is super easy to configure/authenticate Mongo DB in a few minutes. Following these steps will make your work easier. Continue reading this blog to find out those easy steps now.

Step1: Download the Mongo DB using the below link.

https://www.mongodb.com/try/download/community

donwload mongodb

 After downloading the package, follow the steps to install MongoDB.

 successfully downlaod and install

 Now “Agree” to the terms and conditions.

 “Agree” to the terms and conditions.

Click on complete and Next.

 Click on complete and Next

Leave it as MongoDb Service.

Leave it as MongoDb Service.

Proceed to the next steps and wait till the installation is complete.

Proceed to next and wait till the installation complete.

 Click "Finish" to proceed with the Final installation.

 Final installation

Step 2: After Installation, the Mongo files are created in “C:\Program Files\MongoDB\Server\4.4\bin“ After Installation the mongo files are created in

Step 3: Open “CMD ” in the same folder where the Mongo files are created.

Open “CMD ” in the same folder where the mongo files are created.

Step 4: Run “mongodb ” command to start the server

Run “mongod ” command to start the server

Step 5: Create a folder as data/db in Server starts running.

Server starts running

Step 6: Set it as environment Variable “C:\Program Files\MongoDB\Server\4.4\bin“

Set it as environment Variable “C:\Program Files\MongoDB\Server\4.4\bin“Set it as environment Variable “C:\Program Files\MongoDB\Server\4.4\bin“ 2

Run “mongodb ”

 Run “mongodb ”

Step 7: Try to connect with MongoDB compass.