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.
After downloading the package, follow the steps to install MongoDB.
Now “Agree” to the terms and conditions.
Click on complete and Next.
Leave it as MongoDb Service.
Proceed to the next steps and wait till the installation is complete.
Click "Finish" to proceed with the Final installation.
Step 2: After Installation, the Mongo files are created in “C:\Program Files\MongoDB\Server\4.4\bin“
Step 3: Open “CMD ” in the same folder where the Mongo files are created.
Step 4: Run “mongodb ” command to start the server
Step 5: Create a folder as data/db in Server starts running.
Step 6: Set it as environment Variable “C:\Program Files\MongoDB\Server\4.4\bin“
Run “mongodb ”
Step 7: Try to connect with MongoDB compass.