While installing MongoDB on macOS using Homebrew, one of the lines I noticed is:
==> Installing mongodb dependency: sqlite
Out of curiosity, what is the connection there? Why is sqlite a dependency of mongodb?
This guide goes over the two main ways to install MongoDB on a Mac. One of the methods requires Homebrew. Homebrew. Homebrew is a package manager for the Mac – it makes installing most open source software (like MongoDB) as simple as writing brew install mongodb .
Here, MongoDB is the data directory where the mongod writes the data. Here, sudo command means allow to give all the permissions to start the database. Like, as shown in the below image: Here, sudo mongod –dbpath ~/MongoDB command to start mongod server and ~/MongoDB is data directory.
It appears that certain flavors of MongoDB now use SQLite as a backend: https://docs.mongodb.com/stitch/mongodb/mobile/mobile-overview/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With