mongo export SyntaxError:缺少;声明前@(shell):1:14 [英] mongo export SyntaxError: missing ; before statement @(shell):1:14
本文介绍了mongo export SyntaxError:缺少;声明前@(shell):1:14的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正尝试使用此命令行导出我的mongo集合之一:
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
推荐答案
mongoexport
必须从OS命令外壳运行,而不是在mongo shell中运行.
mongoexport
must be run from your OS command shell, not in mongo shell.
这篇关于mongo export SyntaxError:缺少;声明前@(shell):1:14的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文