Lab: Importing a Dataset

I’m trying to get this lab done and I cannot get my command to work. Can someone point me in the right direction.

I am using the following command

mongoimport --db applicationData --collection products
-port 27000 -u “m103-application-user” -p “m103-application-pass” --authenticationDatabase “admin”
–drop --file “/dataset/products.json”

I keep getting the alert that I cannot use 2 destinations. What is wrong in this syntax?

Please show the screenshot with exact error

1 Like

I found my answer. I was using the backslash character before the flag --authenticationDatabase “admin” flag. The login needs to all be on one line.

This is what the command needs to look like.