MongoDB is an open source, cross platform document-oriented database management system. It is a NoSQL database which stores data and schemas as JSON objects. Mongodb is developed by Mongodb Inc and is published under GNU affero General Public License and Apache.
This tutorial describes the steps involved in the installation of MongoDB on MacOS
MongoDB Atlas The Easiest Way to Run MongoDB. Deploy a MongoDB database in the cloud with just a few clicks. With best-in-class automation and proven practices that guarantee high availability, elastic scalability, and optimal performance, MongoDB Atlas is the easiest way to try out the database for free on AWS, Azure, or Google Cloud.
Prerequisites
Installation
Following steps are used to install MongoDB on MacOS.
1) Update homebrew installer package
To get started with the installation of MongoDB on MacOS, we need to update the repository index of Homebrew package Installer. This will be done with the following command.
2) Install MongoDB
After updating the repository index, we need to install MongoDB which will be done with the help of homebrew installer. It simply installs the MongoDB on location /usr/local/Cellar/mongodb
3) Start MongoDB
To start MongoDB, we need to run the following command.
Mongodb Shell For Mac
4) Working on command line
The MongoDB shell can be accessed by running the file named as mongo which is a executable script located inside the bin folder under installation directory.
To create database, we use following command on the MongoDB shell.
5) Stop database
To stop database, we have to specify unload option with the launchctl command as follows:
Well, we have installed MongoDB version 3.4.9 successfully on our MacOS.
![]()
I still see a lot of people asking 'what's the best MongoDB client for Mac OS X' (besides the
mongo shell console), so I think it would be only fair to share my experience.
I've been using MongoDB a lot and for some reason I haven't been too comfortable using the shell console. I mean, you need an integrated code editor to fiddle with those somewhat verbose JSON-formatted queries...
Mongodb Compass For Mac Os
So I was constantly looking for alternatives; 18 months ago there was none I could find and learn to like, really, but now I really favour Robomongo. It gives you 'the full power of MongoDB shell', but in the same time you can easily save, load, edit your queries, do copy/paste, view your results as JSON/trees/tables... and yes, you do get a decent autocompletion :-).
Mongodb Client For Mac
It's also cross-platform, free and open-source (GitHub repo here).
Brew Install Mongodb
Fotonauts' fork of MongoHub is another interesting alternative to keep an eye on; it has a more 'native' OS X feel but IMO it does lack a better query editor...
Comments are closed.
|
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |