当前位置:网站首页>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
边栏推荐
- Analysis of serilog source code -- how to use it
- 美团内部讲座|周烜:华东师范大学的数据库系统研究
- What are the criteria for selecting a cluster server?
- Even liver three all night, jvm77 high frequency interview questions detailed analysis, this?
- Some operations kept in mind by the front end foundation GitHub warehouse management
- electron 實現檔案下載管理器
- 【自学unity2d传奇游戏开发】地图编辑器
- What knowledge do Python automated testing learn?
- The legality of IPFs / filecoin: protecting personal privacy from disclosure
- Diamond standard
猜你喜欢
随机推荐
Tron smart wallet PHP development kit [zero TRX collection]
The legality of IPFs / filecoin: protecting personal privacy from disclosure
C + + and C + + programmers are about to be eliminated from the market
How to get started with new HTML5 (2)
Diamond standard
開源一套極簡的前後端分離專案腳手架
Digital city responds to relevant national policies and vigorously develops the construction of digital twin platform
事务的隔离级别与所带来的问题
【:: 是什么语法?】
Live broadcast preview | micro service architecture Learning Series live broadcast phase 3
如何在终端启动Coda 2中隐藏的首选项?
git远程库回退指定版本
消息队列(MessageQueue)-分析
【转发】查看lua中userdata的方法
Building a new generation cloud native data lake with iceberg on kubernetes
JNI-Thread中start方法的呼叫與run方法的回撥分析
Try to build my mall from scratch (2): use JWT to protect our information security and perfect swagger configuration
Behind the first lane level navigation in the industry
hdu3974 Assign the task線段樹 dfs序
ES6 learning notes (5): easy to understand ES6's built-in extension objects