Mongodb Atlas: not authorized on admin to execute command

前端 未结 9 1928
情书的邮戳
情书的邮戳 2021-02-12 18:08

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条回答
  •  执笔经年
    2021-02-12 18:40

    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/

提交回复
热议问题