I intalled mongodb by the following steps
- Downloaded mongodb-macos-x86_64-4.4.0.tgz
- sudo mv mongodb-macos-x86_64-4.4.0.tgz /usr/local/mongodb
- mkdir -p /data/db
- sudo chown myusername /data/db
- mongod
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
- mongorestore --host localhost --port 27017 --db dbName /Users/userName/Downloads/mongo
It throws
- mongorestore: command not found
How can I install mongostore and mongodumb seperately? Any help would be appreciated. Thanks in advance.