2 / 4
May 2024

Hi there:
Im pretty new to MongoDB. I am trying to import a json file of my full db to mongoDB and can’t seem to find an option for that. I see the option to import a single collection. It will be too much work to do each collection one by one as this is a prod database with over 20k user data.

Is this possible?

i tried mongo restore but im getting this error
Failed: cannot restore to the admin database when connected to a MongoDB Atlas free or shared cluster. Im on the pay as you go plan.

Yes, I believe that one does not have full permissions to one’s Atlas admin database. You have to restore documents, not the whole database. In any case, if you have paid support, take advantage of it. In the upper right of the Atlas control panel, there’s a help widget that lets you contact support.