skip to Main Content

MongoDB not connecting while using host option?

I am unable to connect Atlas MongoDB while using --host option, But i'm able to connect while using --uri option where did i made a mistake? For example: --uri option It's working fine mongodump --uri="mongodb+srv://<username>:<password>@<hostname>/<dbname>" --gzip --out=/dir1/dir2 --host option getting…

VIEW QUESTION

How to restore dump backup in mongodb

I have restore-63bbdc996664dc2524cce24d.tar file, I am restoring it in the MongoDB database tried these commands mongodump --db test --gzip --archive=restore-63bbdc996664dc2524cce24d.tar mongodump --db test --archive=restore-63bbdc996664dc2524cce24d.tar mongodump --host localhost --port 27017 --db test --gzip --archive=restore-63bbdc996664dc2524cce24d.tar mongorestore --drop C:Usersrustamrestore-63bbdc996664dc2524cce24d.tar.gz -v error => Failed:…

VIEW QUESTION
Back To Top
Search