취미와 밥줄사이

[ Flask ] 몽고DB - ServerSelectionTimeoutError: localhost:27017:[WinError 10061] 본문

Python/Flask

[ Flask ] 몽고DB - ServerSelectionTimeoutError: localhost:27017:[WinError 10061]

취미와 밥줄사이 2021. 6. 8. 00:39

 

에러 문구


 ServerSelectionTimeoutError: localhost:27017:[WinError 10061] 

에러 원인


MongoDB가 설치되어 있지 않아서 발생한 에러

 

해결 방법


MongoDB 설치하기

2021.06.08 - [프로그래밍] - [ Windows ] MongoDB 설치하기

REFERENCE


 

https://stackoverflow.com/questions/59166714/pymongo-errors-serverselectiontimeouterror-localhost27017-winerror-10061-wh

 

pymongo.errors.ServerSelectionTimeoutError: localhost:27017: [WinError 10061] when trying to do basic MongoDB query

I'm currently trying to implement a user creation & login system in my Flask webapp using MongoDB Atlas (so it's a cloud server which I think makes a big difference for this error), mongoengine...

stackoverflow.com

 

https://www.programmersought.com/article/99852621014/