当前位置:网站首页>mongo 用户权限 登录指令
mongo 用户权限 登录指令
2020-11-06 21:45:00 【会开车的架构师】
1.通过·ip 端口 远程连接mongo
./mongo --port 27017 --host 60.11.11.1
2.选择使用的mongo库
use huoli_trip
3.权限验证
db.auth('username','password')
示例:

版权声明
本文为[会开车的架构师]所创,转载请带上原文链接,感谢
https://my.oschina.net/u/4629483/blog/4529699
边栏推荐
- 使用 Iceberg on Kubernetes 打造新一代雲原生資料湖
- [efficiency optimization] Nani? Memory overflow again?! It's time to sum up the wave!!
- 【学习】接口测试用例编写和测试关注点
- Basic usage of Vue codemirror: search function, code folding function, get editor value and verify in time
- What knowledge do Python automated testing learn?
- 理解格式化原理
- What are manufacturing and new automation technologies?
- To Lianyun analysis: why is IPFs / filecoin mining so difficult?
- 消息队列(MessageQueue)-分析
- What is alicloud's experience of sweeping goods for 100 yuan?
猜你喜欢

只有1个字节的文件实际占用多少磁盘空间

Live broadcast preview | micro service architecture Learning Series live broadcast phase 3

【自学unity2d传奇游戏开发】地图编辑器

Helping financial technology innovation and development, atfx is at the forefront of the industry

Unity性能优化整理

代码重构之法——方法重构分析

每个大火的“线上狼人杀”平台,都离不开这个新功能

Basic usage of Vue codemirror: search function, code folding function, get editor value and verify in time

Axios learning notes (2): easy to understand the use of XHR and how to package simple Axios

Filecoin has completed a major upgrade and achieved four major project progress!
随机推荐
Details of dapr implementing distributed stateful service
The importance of big data application is reflected in all aspects
意派Epub360丨你想要的H5模板都在这里,电子书、大转盘、红包雨、问卷调查……
Elasticsearch Part 6: aggregate statistical query
事务的本质和死锁的原理
How to get started with new HTML5 (2)
只有1个字节的文件实际占用多少磁盘空间
The method of realizing high SLO on large scale kubernetes cluster
嘉宾专访|2020 PostgreSQL亚洲大会阿里云数据库专场:曾文旌
消息队列(MessageQueue)-分析
PHP application docking justswap special development kit【 JustSwap.PHP ]
代码生成器插件与Creator预制体文件解析
ES6 learning notes (5): easy to understand ES6's built-in extension objects
image operating system windows cannot be used on this platform
检测证书过期脚本
The legality of IPFs / filecoin: protecting personal privacy from disclosure
An article takes you to understand CSS3 picture border
It's time for your financial report to change to a more advanced style -- financial analysis cockpit
大道至简 html + js 实现最朴实的小游戏俄罗斯方块
An article taught you to use HTML5 SVG tags