Last login: Wed Sep 23 10:19:36 on ttys000 ~ % uname -a Darwin Yuriis-MacBook-Pro.local 19.6.0 Darwin Kernel Version 19.6.0: Thu Jun 18 20:49:00 PDT 2020; root:xnu-6153.141.1~1/RELEASE_X86_64 x86_64 ~ % ls -l /usr/local/etc/mongod.conf ls: /usr/local/etc/mongod.conf: No such file or directory ~ % ls -ld /usr/local/var/mongodb ls: /usr/local/var/mongodb: No such file or directory ~ % ls -la /usr/local/var/mongodb/ ls: /usr/local/var/mongodb/: No such file or directory ~ % ls -ld /usr/local/var/log/mongodb ls: /usr/local/var/log/mongodb: No such file or directory ~ % ls -la /usr/local/var/log/mongodb/ ls: /usr/local/var/log/mongodb/: No such file or directory ~ % brew tap mongodb/brew ~ % brew install mongodb-community@4.4 ==> Installing mongodb-community from mongodb/brew ==> Downloading https://fastdl.mongodb.org/tools/db/mongodb-database-tools-macos Already downloaded: /Users/yuriipredborskyi/Library/Caches/Homebrew/downloads/002cb6fdfe7881762c2b90e127cebec5618e9d01e22746aaa67a69bfbb2c9eff--mongodb-database-tools-macos-x86_64-100.1.1.zip ==> Downloading https://fastdl.mongodb.org/osx/mongodb-macos-x86_64-4.4.0.tgz Already downloaded: /Users/yuriipredborskyi/Library/Caches/Homebrew/downloads/bc3baa1e200144436b811c4951ca047b06b784930e83dc66a4554bfa0d2a13e2--mongodb-macos-x86_64-4.4.0.tgz ==> Installing dependencies for mongodb/brew/mongodb-community: mongodb-database-tools ==> Installing mongodb/brew/mongodb-community dependency: mongodb-database- 🍺 /usr/local/Cellar/mongodb-database-tools/100.1.1: 13 files, 172.9MB, built in 3 seconds ==> Installing mongodb/brew/mongodb-community ==> Caveats To have launchd start mongodb/brew/mongodb-community now and restart at login: brew services start mongodb/brew/mongodb-community Or, if you don't want/need a background service you can just run: mongod --config /usr/local/etc/mongod.conf ==> Summary 🍺 /usr/local/Cellar/mongodb-community/4.4.0: 11 files, 136.7MB, built in 2 seconds ==> Caveats ==> mongodb-community To have launchd start mongodb/brew/mongodb-community now and restart at login: brew services start mongodb/brew/mongodb-community Or, if you don't want/need a background service you can just run: mongod --config /usr/local/etc/mongod.conf ~ % brew services start mongodb/brew/mongodb-community ==> Successfully started `mongodb-community` (label: homebrew.mxcl.mongodb-commu ~ % ps aux | grep mongod | grep -v grep yuriipredborskyi 7735 0.3 0.1 6397968 36276 ?? S 10:31AM 0:00.93 /usr/local/opt/mongodb-community/bin/mongod --config /usr/local/etc/mongod.conf ~ % mongo MongoDB shell version v4.4.0 connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb Implicit session: session { "id" : UUID("19bd5bfe-d929-46fa-9835-89088df92638") } MongoDB server version: 4.4.0 --- The server generated these startup warnings when booting: 2020-09-23T10:32:01.921+02:00: Access control is not enabled for the database. Read and write access to data and configuration is unrestricted --- --- Enable MongoDB's free cloud-based monitoring service, which will then receive and display metrics about your deployment (disk utilization, CPU, operation statistics, etc). The monitoring data will be available on a MongoDB website with a unique URL accessible to you and anyone you share the URL with. MongoDB may use this information to make product improvements and to suggest MongoDB products and deployment options to you. To enable free monitoring, run the following command: db.enableFreeMonitoring() To permanently disable this reminder, run the following command: db.disableFreeMonitoring() --- > exit bye ~ % which mongodump /usr/local/bin/mongodump ~ % ls -l `which mongodump` lrwxr-xr-x 1 yuriipredborskyi admin 54 Sep 23 10:31 /usr/local/bin/mongodump -> ../Cellar/mongodb-database-tools/100.1.1/bin/mongodump ~ % mongodump --version mongodump version: 100.1.1 git version: 8bca136c2a0e0daa3947df31c0624c5615f9aa02 Go version: go1.12.17 os: darwin arch: amd64 compiler: gc ~ % mongodump 2020-09-23T10:33:11.703+0200 Failed: error creating intents to dump: error getting database names: (Unauthorized) there are no users authenticated ~ %