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