title: how to solve the error reading database : not authorized in mongo DB
body: <p>am using Mongo DB version 3.4 and I have a user in DB</p>
  
  <pre><code>C:\Program Files\MongoDB\Server\3.4\bin&gt;mongo
  MongoDB shell version v3.4.5
  connecting to: mongodb://127.0.0.1:27017
  MongoDB server version: 3.4.5
  &gt; use admin
  switched to db admin
  &gt; db.auth("myUserAdmin","abc123");
  1
  </code></pre>
  
  <p>I have used following query with authentication to restore the dump file </p>
  
  <pre><code>mongorestore --host 50.50.1.57:27017 --username myUserAdmin --password abc123 --authenticationDatabase admin --db targetdb E:\test\DB\test_02_19_2018_06_00_01\test
  </code></pre>
  
  <p>but I got the issue can u suggest, please</p>
  
  <pre><code>2018-02-19T14:45:29.743+0530    the --db and --collection args should only be used when restoring from a BSON file. Other uses are deprecated and will not exist in the future; use --nsInclude instead
  2018-02-19T14:45:29.745+0530    building a list of collections to restore from E:\test\DB\test_02_19_2018_06_00_01\test dir
  2018-02-19T14:45:29.790+0530    Failed: targetdb.access_token: error reading database: not authorized on targetdb to execute command { listCollections: 1, cursor: { batchSize: 0 } }
  </code></pre>