Error while importing my database

After creating my cluster of 3 mongodb servers. I want to import my database and I get the following error:

error creating collection db.test: error running create command: can’t create user databases on a --configsvr instance

Thanks for your help

Hi @Luka_Maufroy and welcome in the MongoDB community :muscle: !

You created a cluster of config servers for a Shared Cluster.

You are not supposed to write anything in these instances. They are managed by the mongos nodes.

I think this course can help you: M103: Basic Cluster Administration | MongoDB University


1 Like