Mongo 101: NoSQL DataBase
This is not the only post you will find on the internet about it, I create a personal post here more as a personal reference.
MongoDB (from humongous) is a cross-platform document-oriented database. Classified as a NoSQL database, MongoDB eschews the traditional table-based relational database structure in favor of JSON-like documents with dynamic schemas (MongoDB calls the format BSON), making the integration of data in certain types of applications easier and faster. Released under a combination of the GNU Affero General Public License and the Apache License, MongoDB is free and open-source software.
#Install Mongo DB: Update brew if needed:
Use the following command to install the MongoDB package into your Homebrew system:
Later, if you need to upgrade MongoDB:
You share see those if succeed:
#Check the ownership of local db:
Here is an example to fix it if its not you:
#Start Mango DB:
Open /usr/local/mongodb,
Setting your PATH, the MongoDB applications and utilities will be accessible from the system shell.
In on shell , run:
Then open the mongo shell by issuing the following command at the system prompt:
P.s. The default port for mongod and mongos instances is 27017