

You can create the directory in the default location by running sudo mkdir -p /data/db This is where the Mongo data files will live.
#Download mongodb for mac how to#
Follow the instructions in the How to Install Homebrew on a Mac instruction guide. Homebrew is a package manager for the Mac – it makes installing most open source software (like MongoDB) as simple as writing brew install mongodb. Dependencies. This guide goes over the two main ways to install MongoDB on a Mac.You should have some familiarity with the Mac Terminal application since you’ll need to use it to install and run MongoDB.

This is different than SQL databases like MySQL and PostgreSQL, where fields correspond to columns in a table and individual records correspond to rows. Documents can have some fields/keys and not others, which makes Mongo extremely flexible. Values in documents can be looked up by their field’s key. In MongoDB, records are documents which behave a lot like JSON objects in JavaScript. MongoDB is a document database which belongs to a family of databases called NoSQL – not only SQL.
