Web13 apr. 2024 · 从Gitee拉取项目到本地运行时,出现了这个错误,原因有以下几点: 用户名或密码错误。 用户没有连接到正确的数据库。 MongoDB 服务没有启用认证,需要在启动时使用--auth选项启用认证。 对于MongoDB 4.0及以上版本,未启用 SCRAM-SHA-256 认证机制,或C端使用了错误的认证机制,例如 MONGODB-CR。 第一点的可能性最大,因为 … Web21 okt. 2024 · Usually, MongoDB error auth failed, occurs when using an improper authentication method. To restrict MongoDB we need to add an admin user and then …
mongodb用户验证失败auth failed, code:18的原因 - CSDN博客
Web1 dec. 2016 · Hi, I'm not sure why there is an authentication issue while starting api using docker. I gave the correct username and password even. But not sure why authentication fails. Could someone please help me here what is wrong with my configur... Web15 jul. 2024 · Solution 1. As per #46934427, setting spring.data.mongodb.authentication-database=admin would probably fix your issue. The default database in MongoDB is … selling barbie dolls to private collectors
Getting MongoCommandException: Command failed with error 18 ...
Web22 aug. 2024 · Command failed with error 18 (AuthenticationFailed): 'Authentication failed.' on server 1.116.122.1:49156. The full response is {"ok": 0.0, "errmsg": "Authentication failed.", "code": 18, "codeName": "AuthenticationFailed"} 最有可能就是你的用户名和密码没有加上双引号,比如我之前报错的配置如下 spring: data: mo ngodb: … Web4 jan. 2016 · Auth failed, code 18 when connecting to MongoLab database. I'm trying to connect to a MongoLab database but keep getting the following error on connection: var mongoose = require ("mongoose"); mongoose.connect ("mongodb://username:[email protected]:61474/apitest"); … WebYou.com is a search engine built on artificial intelligence that provides users with a customized search experience while keeping their data 100% private. Try it today. selling barley in iowa