
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
mongo DB 최초 유저 생성시, sparta로 하지 않았더니 문제가 생기는 것 같습니다.
데이터 작성한 뒤 데이터베이스를 살펴보면 데이터가 없다고 나옵니다..!

이부분을 임의로 바꿔서 넣었고,
현재 전체 코드는 이러합니다.
from pymongo import MongoClient
client = MongoClient('mongodb+srv://HongChae:<jm3363##^#>@cluster0.ktk1kae.mongodb.net/?retryWrites=true&w=majority')
db = client.HongChae
doc = {
'name': '영수',
'age': 24
}
db.users.insert_one(doc)
작성한 코드 및 에러 메세지
s\pymongo\helpers.py", line 181, in _check_command_response
raise OperationFailure(errmsg, code, response, max_wire_version)
pymongo.errors.OperationFailure: bad auth : authentication failed, full error: {'ok': 0, 'errmsg': 'bad auth : authentication failed', 'code': 8000, 'codeName': 'AtlasError'}
(venv)오류 발생 시, 작성한 코드 전체와 에러 메시지를 첨부해 주세요.
Tip 1) </> 아이콘을 눌러 코드박스를 만들어 보세요.
Tip 2) Ctrl+A(맥의 경우 Command+A) 단축키로 코드를 한 번에 선택할 수 있어요!
