Having issue to read data from the mongo db shell

Hi I am having an error while running this command
mongodump --uri “mongodb+srv://m001student:m001-mongodb-basics@sandbox.mongodb.net/sample_training”

This is the error I am getting although I have established a connection with mongo db shell
uncaught exception: SyntaxError: unexpected token: identifier :

You have to run mongodump outside the mongo shell.

Thank you for informing does it mean that I have to exit the mongo shell and run in the cmd.

Yes that is what it means.

Ok Thanks I think i should not have asked this as this command is not used in labs.Thank you for your response sir.

1 Like