小编Cry*_*ior的帖子

MongoDB - 命令失败,错误代码为13`未经*****授权执行此命令`

因此,由于一些奇怪的原因,我的用户没有被授权在krimson数据库中写任何东西.数据库连接成功,但授予用户写入数据库的访问权限未按预期工作.

完全错误

Caused by: com.mongodb.MongoCommandException: Command failed with error 13: 'not authorized on krimson to execute command { findandmodify: "users", query: { _id: "_id" }, fields: {}, sort: {}, new: true, upsert: true, update: { $i
nc: { _id: 1 } } }' on server ds037395.mongolab.com:37395. The full response is { "ok" : 0.0, "errmsg" : "not authorized on krimson to execute command { findandmodify: \"users\", query: { _id: \"_id\" }, fields: {}, sort: {}, new:
 true, upsert: true, update: …
Run Code Online (Sandbox Code Playgroud)

java mongodb mlab

6
推荐指数
1
解决办法
1万
查看次数

标签 统计

java ×1

mlab ×1

mongodb ×1