mongo export SyntaxError: missing ; before statement @(shell):1:14

好久不见. 提交于 2019-12-01 04:05:32

问题


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:


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



来源:https://stackoverflow.com/questions/47282119/mongo-export-syntaxerror-missing-before-statement-shell114

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!