有人可以向我解释如何以及在何处使用 mongorestore 吗?

问题描述

我有一个数据库转储(bson 和 json 文件)。我已经设置并工作了 Mongo。我什至可以从我的 rest API 服务器访问空数据库,但我不知道在哪里可以使用 mongorestore 命令。我在 shell 中尝试过,但出现语法错误

mongorestore -d forum D:\forum
uncaught exception: SyntaxError: unexpected token: identifier :
@(shell):1:16

我在其他任何地方都能得到这个:

C:\Program Files (x86)>mongorestore -d forum D:\forum
'mongorestore' is not recognized as an internal or external command,operable program or batch file.

那么我该如何使用它呢?显然,第二个应该可以工作,但不适合我。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)