필터 지우기
필터 지우기

Cannot connect to Mongodb

조회 수: 4 (최근 30일)
aleena n a
aleena n a 2021년 11월 8일
편집: aleena n a 2021년 11월 9일
Hello everyone,
I am trying to connect to mongodb. I can establish the connection with just sever and port. To insert documnent I was asked to input username and password. But whenever I try to connect with username and password it shows an error. How to solve this? I am using Matlab R2019a version.
[Mongo Driver Error]:Timed out after 10000 ms while waiting to connect. Client view of cluster state is {type=UNKNOWN,
servers=[{address=xxxxxxxx, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSecurityException:
Exception authenticating MongoCredential{mechanism=null, userName='xxx', source='RadarDatabase', password=<hidden>,
mechanismProperties={}}}, caused by {com.mongodb.MongoCommandException: Command failed with error 18: 'Authentication
failed.' on server xxxxxxxx. The full response is { "ok" : 0.0, "errmsg" : "Authentication failed.", "code" :
18, "codeName" : "AuthenticationFailed" }}}].

답변 (0개)

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by