skip to Main Content

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

Error E11000 in creating MongoDB unique index

I have a MongoDB(v 5.0.6) collection with the following data: [{ "_id": { "$oid": "63bc06e6aa310000d6004a68" }, "key": "title", "label": "title", "type": "text", "searchable": 0 },{ "_id": { "$oid": "63bc06e6aa310000d6004a69" }, "key": "attribution", "label": "attribution", "type": "text", "searchable": 0 },{ "_id":…

VIEW QUESTION

Unable to connect to Mongodb from Nodejs

I am trying to connect to Mongodb from my first node project.I am using Mongoose to achieve that. However, mongoose.connect() gives me MongoParseError error. Complete error: MongoParseError: options connections, models, events, __driver, options, _pluralize, schema, model, plugins, default, mongoose, cast,…

VIEW QUESTION
Back To Top
Search