用户方式登陆MongoDB

来源:互联网 发布:severlet创建数据库 编辑:程序博客网 时间:2024/05/14 17:02

在启动MongoDB的时候加入–auth命令

在进入MongoDB数据库时用命令db.auth(“user”,”pwd”)登陆

0 0
原创粉丝点击