7

Hi i'm trying to export one of my mongo collection by using this comande line :

mongoexport --host 127.0.0.1 --port 3001 --db meteor --collection subs --out subs.json

but i get this error and i don't understand why because every post use this command and it works for them

2017-11-14T10:23:31.562+0100 E QUERY [thread1] SyntaxError: missing ; before statement @(shell):1:14

1 Answer 1

20

mongoexport must be run from your OS command shell, not in mongo shell.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks, I tried many time same command but getting same error. Now Its working.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.