原文:python 连接 mogodb 报错 pymongo.errors.OperationFailure: Another user is already authenticated to this database. You must logout first. 解决

本周项目遇到 pymongo.errors.OperationFailure: Another user is already authenticated to this database. You must logout first. 问题 查了好久 终于找到问题. 谷歌找到结果 解决办法 是因为pymongo 的版本太高 回退到以前的版本就好了 ...

2019-11-11 09:40 4 284 推荐指数:

查看详情

pymongo.errors.OperationFailure: Authentication failed.

mongoDB有不同的认证机制,3.0版本以后采用的是'MONGODB-CR', 之前的版本采用的是'MONGODB-CR'。 所以,以我的版本情况,显然应该用'SCRAM-SHA-1' ...

Sat Feb 16 00:36:00 CST 2019 0 1723
pymongo.errors.OperationFailure: Authentication failed.

原因:mongodb需要用户名、密码登录,认证失败。 mongoDB有不同的认证机制,3.0版本以后采用的是'SCRAM-SHA-1', 之前的版本采用的是'MONGODB-CR'。 根据自己的情况给mechanism赋值。 import pymongo client ...

Wed Apr 26 23:07:00 CST 2017 0 3496
python3操作pymongo报错pymongo.errors.ConfigurationError

第一次在mac使用python3连接mongo库。 1,确认是否已经安装了 python3 2,安装 pymongo 3,运用python脚本 结果报错: 查了很久没发现准确的解决办法。 后来在原window上查 ...

Thu Dec 16 04:48:00 CST 2021 0 893
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM