Lab: Importing a Dataset

I try
mongoimport --port 27000 -u “m103-application-user” -p “103m-application-pass” --authenticationDatabase “admin” -d applicationData -c products /dataset/products.json
but result is :
error connecting to host: could not connect to server: connection() : auth error: sasl conversation error: unable to authenticate using mechanism “SCRAM-SHA-256”: (AuthenticationFailed) Authentication failed.

Snap
What’s wrong with this code

1 Like

Hi @NNikita01

Are you sure the user was created?

The default user is m103-admin, m103-pass I believe.

Thanks for including a screenshot.


Edit:
Oh, 103m-application-pass should be m103-application-pass

(In case you created the user)

1 Like

Yes I passed the Lab: Creating First Application User

Thank You! :slight_smile: