Using mongodump: “mongodump: command not found”

As of MongoDB 4.4 (released July 30, 2020), you may need to install mongodump separately because the MongoDB Database Tools (which comprises mongodump, mongorestore, and more) has become its own project.

I found this out because I upgraded to MongoDB 4.4 today and mongodump stopped working.

$ mongodump
zsh: command not found: mongodump

I’m on macOS and installed MongoDB via Homebrew. To get mongodump and friends back, I installed the MongoDB Database Tools via Homebrew:

brew tap mongodb/brew
brew install mongodb-database-tools

If you’re on a different OS, this should help:

MongoDB Database Tools Installation

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)