mongodb authorization failed怎么处理

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mongodb authorization failed怎么处理相关的知识,希望对你有一定的参考价值。

参考技术A PRSDBLOGAffectedRowCount @PackageType,1350,@@RowCount
while @@rowcount>1
delete
from temp
OUTPUT deleted.*
INTO temp_deleted
WHERE OperateTime > @CurrentDate
exec PRSDBLOGAffectedRowCount
set rowcount 0本回答被提问者和网友采纳

Authorization Security for Mongodb

To keep security for the mongodb server, we can create an authorized machanism.

 

db.createUser(
    {
        user: "user1",
        pwd: "passwd",
        roles:[{"role": "userAdminAnyDatabase", "db": "admin"}]

    }
)

db.createUser(
    {
        user: "user2",
        pwd: "passwd",
        roles:[{"role": "readWrite", "db": "database"}]

    }
)

 

以上是关于mongodb authorization failed怎么处理的主要内容,如果未能解决你的问题,请参考以下文章

Authorization Security for Mongodb

Robomongo连接MongoDB 报 Authorization failed 解决办法

MongoDB 聚合框架匹配或

使用pymongo连接mongodb时报错:pymongo.errors.OperationFailure: not authorized

使用Robomongo 连接MongoDB 报 Authorization failed 解决办法

MongoDB关系属性更新