Last active
December 14, 2020 22:00
-
-
Save ryanvgates/1b8270a969eb78f9f0df0825665b6102 to your computer and use it in GitHub Desktop.
Mongo Namespace Gotcha
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mongorestore --host mongoose --ssl --username user --password password --authenticationDatabase myDB --archive=/dump_myDB.archive --gzip --nsInclude "myDB" --nsFrom "myDB" --nsTo "myDB" | |
2019-08-28T11:15:40.909-0400 preparing collections to restore from | |
2019-08-28T11:17:22.461-0400 done | |
mongorestore --host mongoose --ssl --username user --password password --authenticationDatabase myDB --archive=/dump_myDB.archive --gzip --nsFrom "myDB" --nsTo "myDB" | |
2019-08-28T11:43:53.381-0400 preparing collections to restore from | |
2019-08-28T11:43:53.440-0400 Failed: myDB.1359_23_10591_1290: error reading database: not authorized on myDB to execute command { listCollections: 1, cursor: { batchSize: 0 }, $db: "myDB" } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment