Bry*_*ain 5 database homebrew mongodb
在终端中,当我输入mongosh --version我得到1.0.7,但是当我输入mongo --version我得到
Build Info: {
"version": "5.0.2",
"gitVersion": "6d9ec525e78465dcecadcff99cce953d380fedc8",
"modules": [],
"allocator": "system",
"environment": {
"distarch": "x86_64",
"target_arch": "x86_64"
}
}
Run Code Online (Sandbox Code Playgroud)
由于 mongosh 和 mongo 是不同的版本,这有什么问题吗?我可以正常使用mongoDB吗?
As @prasad pointed out, mongosh is the newer tool.
\nSee company blog post here: https://www.mongodb.com/blog/post/introducing-the-new-shell
\nQuote from the blog post above here:
\n\n\nSince the beginning, MongoDB has had a shell (mongo) and almost\neverybody who\xe2\x80\x99s ever used MongoDB has used it for one reason or\nanother. From running simple queries to scripting admin operations,\nour users use the shell almost every day, several times a day.
\nThe more MongoDB grows as a data platform and it expands with new\nfunctionality and new products, the more the shell needs to do. We\nhave considered how to extend mongo to grow along with the MongoDB\nplatform, but we\xe2\x80\x99ve come to realize that this would not have been the\nright approach.
\n出于这个原因,我们重新开始设计一个新的\nMongoDB Shell。新的 MongoDB Shell 被构建为\n可扩展的,因此当新产品和\n服务添加到 MongoDB 平台时,我们可以轻松添加新功能,\xe2\x80\x99s 可嵌入,因此除了在终端中使用它之外\n ,您可以在其他产品中使用它(或其一部分)(其中一个示例是 MongoDB for VS Code),\n最后但并非最不重要的一点是,它提供了现代命令行体验\n以及增强的可用性功能。
\nMongoDB Shell 是一个独立的产品,它\xe2\x80\x99s 与 MongoDB Server 分开开发\n,并且它\xe2\x80\x99s 在 Apache 2\n许可证下开源。
\n
| 归档时间: |
|
| 查看次数: |
7936 次 |
| 最近记录: |