原文: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