mongodb - 如何在 MongoDB Atlas 上创建数据库?
问题描述
我将我的 ip 添加到白名单并在我的 mac 终端上键入命令:
mongo "mongodb+srv://cluster0.vcwmp.mongodb.net/movietogo" --username motogod19
然后显示信息:
MongoDB shell version v4.2.2
Enter password:
connecting to: mongodb://cluster0-shard-00-00.vcwmp.mongodb.net:27017,cluster0-shard-00-01.vcwmp.mongodb.net:27017,cluster0-shard-00-02.vcwmp.mongodb.net:27017/movietogo?authSource=admin&compressors=disabled&gssapiServiceName=mongodb&replicaSet=atlas-fdputk-shard-0&ssl=true
2020-08-31T16:48:10.763+0800 I NETWORK [js] Starting new replica set monitor for atlas-fdputk-shard-0/cluster0-shard-00-00.vcwmp.mongodb.net:27017,cluster0-shard-00-01.vcwmp.mongodb.net:27017,cluster0-shard-00-02.vcwmp.mongodb.net:27017
2020-08-31T16:48:10.763+0800 I CONNPOOL [ReplicaSetMonitor-TaskExecutor] Connecting to cluster0-shard-00-01.vcwmp.mongodb.net:27017
2020-08-31T16:48:10.763+0800 I CONNPOOL [ReplicaSetMonitor-TaskExecutor] Connecting to cluster0-shard-00-02.vcwmp.mongodb.net:27017
2020-08-31T16:48:10.763+0800 I CONNPOOL [ReplicaSetMonitor-TaskExecutor] Connecting to cluster0-shard-00-00.vcwmp.mongodb.net:27017
2020-08-31T16:48:11.851+0800 I NETWORK [ReplicaSetMonitor-TaskExecutor] Confirmed replica set for atlas-fdputk-shard-0 is atlas-fdputk-shard-0/cluster0-shard-00-00.vcwmp.mongodb.net:27017,cluster0-shard-00-01.vcwmp.mongodb.net:27017,cluster0-shard-00-02.vcwmp.mongodb.net:27017
Implicit session: session { "id" : UUID("06519e67-e738-44fa-a31d-697c845949f7") }
MongoDB server version: 4.2.8
Welcome to the MongoDB shell.
For interactive help, type "help".
For more comprehensive documentation, see
http://docs.mongodb.org/
Questions? Try the support group
http://groups.google.com/group/mongodb-user
MongoDB Enterprise atlas-fdputk-shard-0:PRIMARY>
但是当我打开浏览器时,我无法选择任何集合或数据库。
只是在终端上输入命令是错误的吗?
解决方案
推荐阅读
- python - Cifar10 数据集拟合错误上的自动编码器
- java - 如何使用循环中生成的线程进行多线程处理?
- azure-pipelines - 在 Azure DevOps 服务器中使用私有 Azure 工件中的包
- c# - 您可以仅使用列表 ID 将动态模板发送到列表吗?
- c# - 在unity / c#中选择对象时如何播放正确的声音
- html - 引导卡在 bootstrapemail 中不起作用
- python-3.x - 从生成器创建 numpy 数组,列表列表
- vue.js - nuxt如何生成动态路由
- android-studio - 使用切换按钮打开和关闭 TextToSpeech?
- for-loop - 遍历嵌套字典并将键值为 True 的实例合并到打印语句中