Cannot connect to Mongodb
조회 수: 4 (최근 30일)
이전 댓글 표시
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
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!