用Montorestore导入“ BSON”数据集

发布于 2025-01-27 14:33:02 字数 339 浏览 2 评论 0原文

我已经通过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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文