Lab shard a collecton : Issue with imorting data on primary shard

I getting the error while importing the dataset

vagrant@m103:~$ mongoimport --drop /shared/products.json --port 26000 -u “m103-admin” -p “m103-pass” --db m103 --collection products
2019-09-07T19:38:25.796+0000 Failed: error connecting to db server: server returned error on SASL authentication step: Authentication failed.
2019-09-07T19:38:25.797+0000 imported 0 documents

Please check your command again
authenticationDatabase is missing

1 Like

Thanks Rama
Yes that was the missing item causing the problem.