问题描述
我想将bson文件导入mongodb。
为此我尝试过,
在命令提示符下
cd -> c -> program files -> mongodb -> 4.4 -> bin -> mongo start
它运行 mongo shell,我尝试使用命令,
mongorestore -d db_name(my-db) -c collection_name(my-col) d:/data.json
它给出了错误:
uncaught exception: SyntaxError: unexpected token: identifier :
@(shell):1:16
我寻找解决方案:mongorestore uncaught exception: syntax error
它的解决方案是简单地在命令提示符下运行命令,所以当我在命令提示符下运行时,
它给出了错误:
'mongorestore' is not recognized as an internal or external command,operable program or batch file.
P.S.:我下载了 mongodb 数据库工具,它下载了 zip 文件,我从下载的文件中运行了 mongorestore 应用程序并允许运行,但没有任何反应。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)