๐ฉ๋ฌธ์ : MongoDB ์ฐ๊ฒฐ์ด ๋์ง ์๊ณ ์๋ฌ ๋ฐ์
2024-05-09T20:16:58.672+09:00 ERROR 23172 --- [core] [nio-8081-exec-3] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed: org.springframework.data.mongodb.UncategorizedMongoDbException: Exception authenticating MongoCredential{mechanism=SCRAM-SHA-256, userName='root', source='admin', password=<hidden>, mechanismProperties=<hidden>}] with root cause
com.mongodb.MongoCommandException: Command failed with error 18 (AuthenticationFailed): 'Authentication failed.' on server localhost:27018. The full response is {"ok": 0.0, "errmsg": "Authentication failed.", "code": 18, "codeName": "AuthenticationFailed"}
at com.mongodb.internal.connection.ProtocolHelper.getCommandFailureException(ProtocolHelper.java:205) ~[mongodb-driver-core-4.11.1.jar:na]
โณํด๊ฒฐ : ๋น๋ฐ๋ฒํธ๋ฅผ ๋ณต์กํ๊ฒ ๋ฐ๊ฟจ๋ค
๋น๋ฐ๋ฒํธ๊ฐ ๋๋ฌด ์งง์์ ์ ๋ ๊ฑฐ์๋ค
58155815
→
testpassword1234๋ก ๋ณ๊ฒฝํ๋๊น
์ ๋์๊ฐ๋ค
admin์ root๊ฐ ์๋์ง ๊ฒ์ฆํ๋๋ผ ์์ฒญ ์๊ฐ์ ์ผ๋๋ฐ ๊ทธ๊ฒ ์๋์๋ค๊ณ ํ๋ค