View collections of a database: show collections.The configuration file is located at: /usr/local/etc/nf Create user and databaseīy default, Authentication is disabled, and you just have to type mongo to be inside the database.
#Brew install mongo shell install#
# Verify that your system meets all the installation prerequisitesīrew install Start MongoDB as a MacOS serviceīrew services start Start Mongo Shell to make sure everything works
#Brew install mongo shell download#
# download the official Homebrew formulae for MongoDB and Database tools
Once completed, we can continue with the steps below.įor mac users with Intel processors, here command to run: # Install XCode Command Line Tools
Companies like Barclays, Uber, Lyft, Accenture, CircleCI, and Segment use it to handle their most demanding apps in areas like IoT, Gaming, Logistics, Banking, e-Commerce, and Content Management. In 2019, MongoDB had a market share of 24.6% in the database. You need MongoDB when you build a system that needs to support a massive amount of readers in the database you need to scale your database horizontally with the growth you want to store data where model restriction doesn't exist. It allows manipulating structured objects in a BSON (binary JSON) format without a predetermined schema.
MongoDB is a Document Object-Oriented database that belongs to the category of NoSQL databases. Photo by Barefoot Communications on Unsplash