Mongodb Atlas:未经管理员授权执行命令 [英] Mongodb Atlas: not authorized on admin to execute command

查看:187
本文介绍了Mongodb Atlas:未经管理员授权执行命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个MongoDB Atlas集群,我试图在其中集群中简单地复制同一实例中的数据库.不幸的是,每次我尝试运行db.copyDatabase()或copydb admin命令时,都会出现以下错误:

I have a MongoDB Atlas cluster within which I am trying to simply copy a database within the same instance. Unfortunately, every time I try to run db.copyDatabase() or copydb admin command, I get the following error:

not authorized on admin to execute command

这很奇怪,因为我只有一个用户,而且它可以访问所有内容,至少就我在图集上所知:

Which is very strange, because I just have one user, and it has access to everything, at least as far as I can tell on atlas:

我在stackoverflow中进行了一些搜索,但是看起来大多数答案都与在本地运行的mongod实例有关,而不是与在Atlas中运行的实例有关...我将用户设置错了吗?

I did some search in stackoverflow, but it looked like most of the answers pertain to mongod instances running locally, and not ones running in atlas... Did I setup the user wrong?

推荐答案

我最终向MongoDB大学讨论委员会提出了这个问题.万一有人碰到这个,显然是因为我使用的是免费集群.

I ended up asking this question to MongoDB University discussion board. In case anyone comes across this, this is apparently because I am using a free cluster.

这篇关于Mongodb Atlas:未经管理员授权执行命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆