Hi, first time posting here. I searched for my issue but only found results from over a year ago. I have a digital ocean mongo server, I am connected to it and from shell trying to export.
This all seems pretty straightforward and feel I must be missing something very generic/obvious.
I am running MongoDB 4.0.3 on Ubuntu 18.04, and mongoexport returns same version r4.0.3
mongoexport --collection test --db resolutions --authenticationDatabase admin --username myadminusername --password myStr0ngPassw0rd
- if I change the username or password to invalids, returns authentication failed.
- if I change the collection or database to invalids, I get the same as when correct values.
I have a resolutions database in a test collection, simple naming with no special characters. I am logged in as super user.
connected to: localhost
exported 0 records
Help? Thanks in advance!