Mongoimport Error

Please help with this issue::

command I ran:

mongoimport --port 26000 -u “m103-admin“ -p “m103-pass” --authenticationDatabase “admin” --db “m103” --collection “products” --file /dataset/products.json

Error received:

2020-10-07T09:27:38.035+0000 error validating settings: only one positional argument is allowed
<ction “products” --file /dataset/products.json
2020-10-07T09:29:08.505+0000 error connecting to host: could not connect to server: connection() : auth error: sasl conversation error: unable to authenticate using mechanism “SCRAM-SHA-1”: (AuthenticationFailed) Authentication failed.

Always refer to the documentation.


Most likely you are missing a couple of = between the argument key and the argument value.

1 Like

Thanks! I am going to check the documentation and fix the syntax as you suggested.