Python 如何修复pymongo.errors.OperationFailure:
我得到的错误是:Python 如何修复pymongo.errors.OperationFailure:,python,pymongo,Python,Pymongo,我得到的错误是: pymongo.errors.OperationFailure: bad auth : Authentication failed., full error: {'ok': 0, 'errmsg': 'bad auth : Authentication failed.', 'code': 8000, 'codeName': 'AtlasError'} 到目前为止,您尝试了什么?请检查用于连接MongoDB的用户名和密码。用户名或密码不正确时会发生此错误。已尝试..失败..已决
pymongo.errors.OperationFailure: bad auth : Authentication failed., full error: {'ok': 0, 'errmsg': 'bad auth : Authentication failed.', 'code': 8000, 'codeName': 'AtlasError'}
到目前为止,您尝试了什么?请检查用于连接MongoDB的用户名和密码。用户名或密码不正确时会发生此错误。已尝试..失败..已决定在本地数据库上托管