Thanks Ram.
The syntax of the mongoimport command is:
mongoimport --port -u -p --authenticationDatabase -d -c --file
And following the following lab instructions I have formed my mongoimport commnd
===== Lab Instructions =====
Use mongoimport to import the data in /dataset/products.json:
- import this dataset onto m103.products
- use mongos as the target for mongoimport - you can find the configuration details for this process in mongos.conf
- authenticate to mongos as m103-admin (with password m103-pass)
===== mongoimport commnd =====
mongoimport --port 26000 -u m103-admin -p m103-pass --authenticationDatabase mongos -d m103 -c products --file “/dataset/products.json”
OR
mongoimport --port 26000 -u m103-admin -p m103-pass --authenticationDatabase admin -d m103 -c products --file “/dataset/products.json”
I really didn’t understand the 2nd & 3rd instructions. Could you please explain me and also correct me if my mongoimport command is incorrect.
Regards,
Mahantesh