title: Use mongorestore to restore a database to MongoDB (3.4) with --auth enabled, SASL error
body: <p>Using mongorestore, I am trying to restore a MongoDB database to a new server (both version are 3.4). The new server has -auth enabled, so you are required to login. The database does not exist so I want mongorestore to create it using the --db option. This works when authorization is not enabled but if I enable authorization the restore fails with the following error:</p>
  
  <p>Failed: error connecting to db server: server returned error on SASL authentication step: Authentication failed.</p>
  
  <p>I am using an admin account with the root role when I attempt the restore.</p>
  
  <p>Backing up prod and restoring to dev is a fairly regular activity for us, but we can't just drop the existing database and recreate it because of the error above, not unless we disable authorization which doesn't make much sense. Is there a better way to do this/avoid the SASL errors/not have to disable auth?</p>