1 not authorized on testdb to execute command { find: "Schedule", filter: {}, skip: 0, limit: 20, maxTimeMS: 60000, lsid: { id: UUID("41a5218c-071f-41c4-9b06-a28fb60f8015") }, $db: "testdb" } 查看用户的权限 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18...
如何解决“mongodb not authorized on yunchong to execute command” 1. 问题描述 首先,我们来解释一下问题的背景。当您在使用 MongoDB 数据库时,可能会遇到以下错误信息:“mongodb not authorized on yunchong to execute command”。这个错误通常发生在您尝试执行一个需要授权的操作时,但是您没有相应的权限。 2...
"errmsg":"not authorized on admin to execute command { find: \"system.version\", filter: { _id: \"shardIdentity\" }, lsid: { id: UUID(\"db3f050d-1c97-712d-8ad3-9c9df27d6c67\") }, $clusterTime: { clusterTime: Timestamp(1662603775, 1), signature: { hash: BinData(0, 1B73...
mongoDB开启的 --auth 之后,使用 db.eval() 报错MongoError: not authorized on wang to execute command mongoDB开启auth验证后,除了创建用户和授权角色外,在执行一些特殊操作的时候,还是会“not authorized”错误,如在执行以下语句时 db.eval('db.whiteBoardUserEdit.find({})') 1. 会报如下错误: 解决步骤如...
迁移场景,全量迁移报错,日志提示信息:service DATAMOVE failed, cause by: apply event=[type=table_data, batch_index_in_shard=1, table_schema=***, table_name=***, record_num=2720] occur error, msg=Command failed with error 13 (Unauthorized): 'not authorized on *** to execute command {*...
迁移场景,全量迁移报错,日志提示信息:service DATAMOVE failed, cause by: apply event=[type=table_data, batch_index_in_shard=1, table_schema=***, table_name=***, record_num=2720] occur error, msg=Command failed with error 13 (Unauthorized): 'not authorized on *** to execute command {*...
解决:MongoDB couldn‘t add user: not authorized on ‘your db‘ to execute command 二年前在服务器放的一个mongodb,现在早已经忘记了验证密码,进不去了。如今记录下恢复过程。 1. 先关闭mongodb进程: 方法一、 $ ./mongod --shutdown --dbpath /usr/local/mongo/data/db ...
mongodb执行dropDatabase报错"not authorized on xxx to execute command { dropDatabase:1.0,$db:"xxx"}"解决办法 此错误是因为没有授权给admin用户对system数据库执行命令的权限,解决方法如下: > db.grantRolesToUser ( "root", [ { role: "__system", db: "admin" } ] )...
Mongodb默认是不需要用户密码就可以连接的,如果使用命令报错"not authorized on admin to execute command ",则表示当前登陆用户不具备相应权限; d9cea4c622b44053bb7bd919ac65533.png 解决办法:通过创建一个用户,赋予用户root权限 注意:在createUser之前先use admin切换一下。
简介: 解决:MongoDB couldn‘t add user: not authorized on ‘your db‘ to execute command 这个问题主要是mongodb的配置文件开启了授权验证,如果要添加用户可以先暂时关闭。 ①将mongod.conf配置文件中的authorization置为disabled vi /mongodb/single/mongod.conf ②关闭mongodb(直接kill掉进程): ps -elf|...