title: MongoDB - can't get data exported with mongoexport due to auth failed
body: <p>I have a Mongo DB database and I trying to export couple "records" from one of the collections present in this database. Here is the command I am trying to use and the error I am getting:</p>
  
  <pre><code>mongoexport --collection my_collection --out my_collection.json --limit 10 --db my_db --username mongoadmin --password secret --host localhost
  
  connected to: localhost
  assertion: 18 { ok: 0.0, errmsg: "auth failed", code: 18 }
  </code></pre>
  
  <p>Don't know what is wrong here.</p>