输入000000显示后端执行异常
来源:3-2 用户登陆系统的流程说明
终极暴龙战士
2022-04-15
后端片段截取
10:29:33 ERROR 鎵ц寮傚父
com.example.emos.wx.exception.EmosException: 鏃犳硶缁戝畾瓒呯骇绠$悊鍛樿处鍙?
Caused by: com.mongodb.MongoSecurityException: Exception authenticating MongoCredential{mechanism=SCRAM-SHA-256, userName=‘admin’, source=‘admin’, password=, mechanismProperties=}
Caused by: com.mongodb.MongoCommandException: Command failed with error 18 (AuthenticationFailed): ‘Authentication failed.’ on server localhost:27017. The full response is {“ok”: 0.0, “errmsg”: “Authentication failed.”, “code”: 18, “codeName”: “AuthenticationFailed”}
MongoDB数据库在Navicat里也打不开连接,显示Cannot connect to MongoDB. Authentication failed.请问这是什么原因,应该如何解决?
写回答
1回答
-
神思者
2022-04-15
你是不是用的自己的MongoDB,要用课程附带的
00
相似问题