[MongoDB] mongodb: Auth mechanism not specified

2021. 9. 13. 15:18·Error code 모음/1. SQL errors
반응형

 

 

1. 에러 원인


해당 에러는 mongo 에 아이디 / 비번 설정을 했을 경우

pymongo 를 통해 해당 아이디 / 비번을 입력을 해주어야 되는데 해당 설정이

제대로 되지 않는 경우 발생하는 것 같다.

 

 

 

 

 

2. 해결 방법


 

authenticate 메서드를 사용하는 방법도 있지만 아무래도 제일 편한거는

string 형태로 하나의 링크를 만들어주는 방법이 제일 편할 것이다.

 

링크를 직접 만드는 데는 어려울 수 있으므로 

 

MongoDB Compass 에 New Connection 부분에서 링크를 복붙해서 붙이는것이 가장 편하다고 본다

 

복사해서 사용하고 있는 파이썬 스크립트에 붙여넣기를 한다

 

 

이렇게 하면 위의 에러는 해결할 수 있다고 본다.

 

 

 

 

3. 참고 링크


https://stackoverflow.com/questions/40346767/pymongo-auth-failed-in-python-script

 

pymongo auth failed in python script

I have installed mongodb and enabled auth. and its working find. I can connect it from remote notebook using robomongo application: Host: SERVER_IP PORT: 27017 DATEBASE: prod-db USERNAME: user_nam...

stackoverflow.com

https://stackoverflow.com/questions/57001283/mongodb-auth-mechanism-not-specified

 

mongodb: Auth mechanism not specified

I followed the instructions here for setting up users... Then from another machine I do: mongo -u admin -p adminpassword host/collection The response I get is: MongoDB shell version: 2.6.10

stackoverflow.com

 

반응형
저작자표시 비영리 변경금지 (새창열림)

'Error code 모음 > 1. SQL errors' 카테고리의 다른 글

[MSSQL] varchar 데이터 형식을 datetime 데이터 형식으로 변환하는 중 값 범위를 벗어났습니다 에러  (0) 2024.01.10
[Oracle Error] begin case declare end exception exit for goto if loop mod null pragma raise return select update while with  (0) 2023.07.14
[Sql Error] Ignoring query to other database  (0) 2021.04.30
[MySql Error] ERROR 1819 (HY000): Your password does not satisfy the current policy requirements  (0) 2021.04.29
[MySQL Error] The MySQL server is running with the --secure-file-priv option so it cannot execute this statement  (0) 2021.03.19
'Error code 모음/1. SQL errors' 카테고리의 다른 글
  • [MSSQL] varchar 데이터 형식을 datetime 데이터 형식으로 변환하는 중 값 범위를 벗어났습니다 에러
  • [Oracle Error] begin case declare end exception exit for goto if loop mod null pragma raise return select update while with
  • [Sql Error] Ignoring query to other database
  • [MySql Error] ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
쟈누
쟈누
Ad astra per aspera
    반응형
  • 쟈누
    쟈누의 기록공간
    쟈누
  • 전체
    오늘
    어제
    • 분류 전체보기 (444)
      • AWS (31)
        • Glue (4)
        • S3 (1)
      • 클라우드 (0)
      • Data Engineering (37)
        • GitHub (10)
        • NiFi (11)
        • Spark (10)
        • Snowflake (0)
        • 머신러닝, AI (6)
      • 언어 (118)
        • 데이터 베이스 (42)
        • JAVA (9)
        • Python (34)
        • Java Script (15)
        • Linux (18)
      • 프로젝트, 인강 그리고 책 (30)
        • Spotify Project (7)
        • RASA chatbot Project (9)
        • Naver shopping Project (6)
        • 빅데이터를 지탱하는 기술 (8)
      • OLD (56)
        • IT 용어 사전 (13)
        • Front End (12)
        • Back End (31)
      • Error code 모음 (165)
        • 1. SQL errors (17)
        • 2. Hadoop errors (20)
        • 3. Linux Errors (14)
        • 4. Python errors (33)
        • 5. JAVA, Spring errors (41)
        • 6. Jav Script errors (10)
        • 7. Dev Tools errors (9)
        • 8. Git errors (8)
        • 9. Jenkins Errors (4)
        • 10. airflow Errors (2)
        • 11. Aws errors (7)
      • 개인 (1)
        • 책 (1)
  • 블로그 메뉴

    • 홈
    • 태그
    • 방명록
    • 블로그 관리
    • 글쓰기
  • 링크

  • 공지사항

    • 간단한 블로그 소개
  • 인기 글

  • 태그

    MySQL
    자바
    Spring
    리눅스
    Python
    node
    python error
    AWS
    API
    java
    Git
    linux
    json
    error
    파이썬
    설치
    SQL
    NiFi
    install
    에러
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.3
쟈누
[MongoDB] mongodb: Auth mechanism not specified
상단으로

티스토리툴바