原文:pymongo.errors.OperationFailure: Authentication failed.

原因:mongodb需要用戶名 密碼登錄,認證失敗。 mongoDB有不同的認證機制, . 版本以后采用的是 SCRAM SHA , 之前的版本采用的是 MONGODB CR 。 根據自己的情況給mechanism賦值。 import pymongo client MongoClient mongodb: host:port client.admin.authenticate username , ...

2017-04-26 15:07 0 3496 推薦指數:

查看詳情

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
GitHub Desktop報錯 Authentication failed. Some common reasons include

[注意:前面都是廢話,重點在后面的解決方案] 背景 這幾天在學習GitHub,雖然之前用過一段時間,但是感覺好多東西不懂,這個用好了對於工作學習幫助會很大,方便安全。所以想系統的學習下。后續 ...

Tue Aug 03 18:54:00 CST 2021 0 286
remote: Coding 提示: Authentication failed.【coding.net】

今天遇到一個坑,就是coding.net改版后,我們本地git無法提交代碼。 錯誤是: remote: Coding 提示: Authentication failed.remote: 認證失敗,請確認您輸入了正確的賬號密碼。 remote: Coding 提示 ...

Wed Mar 18 23:50:00 CST 2020 0 1230
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM