Jagan
Jagan

Reputation: 620

mongodump and mongorestore command not found mac

I intalled mongodb by the following steps

Now the mongodb server is started and running, I need to import my db with the backup I have. I tried importing data with the following command

It throws

How can I install mongostore and mongodumb seperately? Any help would be appreciated. Thanks in advance.

Upvotes: 13

Views: 18190

Answers (1)

patrik csak
patrik csak

Reputation: 1637

As of MongoDB 4.4 (released July 30, 2020), you 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

It looks like you're not using Homebrew, so this should help:

MongoDB Database Tools Installation

Upvotes: 44

Related Questions