原文:pymongo.errors.OperationFailure: This MongoDB deployment does not support retryable writes. Please add retryWrites=false to your connection string.

This MongoDB deployment does not support retryable writes. Please add retryWrites false to your connection string. 此MongoDB部署不支持可重试写入。请将retryWrites false添加到连接字符串中。 ...

2019-12-13 18:51 0 444 推荐指数:

查看详情

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
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM