
Homebrew can install its own current versions of glibc and gcc for older distributions of Linux.įeatures, installation instructions and requirements are described below. Homebrew does not use any libraries provided by your host system, except glibc and gcc if they are new enough. It can be installed in your home directory, in which case it does not use sudo. Homebrew was formerly referred to as Linuxbrew when running on Linux or WSL. Note :If update version by brew upgrade mongo,the folder 4.0.The Homebrew package manager may be used on Linux and Windows Subsystem for Linux (WSL). Location: /usr/local/Cellar/mongodb/4.0.3_1 I have just installed mongodb 3.4 with homebrew.(brew install mongodb) It looks for /data/db by default. To run it (if you installed it with homebrew) run the process like this: $ mongod -dbpath /usr/local/var/mongodb I had the same problem, with version 3.4.2


This can be overridden by a dbpath option specified on the command line or in a configuration file. The default data directory for MongoDB is /data/db.

Where are the database files saved on mac? To create such a folder on mac, but I didn't find any database file in this folder, though i created a database. I remember doing something like sudo mkdir -p /data/db How and where in mac, the database is stored. I know, in windows there is a folder called c:\data\db, where my database files are stored. I have a weird doubt, accessing the database created using mongodb on mac? I am kind of new to mac as well as mongodb.
