用Montorestore导入“ BSON”数据集
我已经通过Atlas创建了一个数据库,Restuarants
,并制作了一个空的集合,Restuarants
。
我将Mongosh连接到我的Atlas帐户,并尝试使用以下命令将文件导入文件
>用户名/餐厅.samplerestaurants.bson
但是,我会收到以下错误:
未被发现: TypeError:无法分配仅读取对象的属性“消息” SyntaxError:Unknown:丢失的Semicolon。 (1:15)
我无法说出怎么了。一直在查看文档,但找不到答案。
I have created a database, Restuarants
through Atlas and made an empty collection, restuarants
.
I connected to my Atlas account with mongosh and attempted to import a .bson
file with restore
using the following command:
mongorestore -d Restaurants -c restaurants /Users/username/restaurants.sampleRestaurants.bson
However, I get the following error:
Uncaught:
TypeError: Cannot assign to read only property 'message' of object 'SyntaxError: unknown: Missing semicolon. (1:15)
I can't tell what's wrong. Been looking through the docs but can't really find an answer.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论