Mongodb Atlas: not authorized on admin to execute command

前端 未结 9 1744
小蘑菇
小蘑菇 2021-02-12 17:56

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 ad

9条回答
  •  -上瘾入骨i
    2021-02-12 18:46

    this error is because you are trying create the colecction above admin, in atlas this isn't possible because securty.

    in this case you need to use the word key use [collection_name]

    this is the link for this answer.

    it is in spanish.

    https://victorroblesweb.es/2016/12/24/crear-una-base-datos-mongodb/

提交回复
热议问题