Add authenticated message.

master
Michael Kennedy 5 years ago committed by GitHub
parent 3d29468783
commit 4997e05eab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -4,4 +4,12 @@ To restore any of these databases to MongoDB, you'll need to uncompress them and
``` ```
mongorestore --drop --db DATABASE /path/to/unziped/dir mongorestore --drop --db DATABASE /path/to/unziped/dir
``` ```
If you are using an authenticated connection on another server, this more verbose version is required:
```
mongorestore -u admin -p <mypassword> --authenticationDatabase 'admin' --ssl --host <my_hostname> --sslCAFile mongod.crt --sslPEMKeyFile mongod.pem --drop --db DATABASE /path/to/unziped/dir
```
Note this references this two MongoDB certifications for connecting. You can altermantively use the `--sslAllowInvalidCertificates` flag to ignore them.

Loading…
Cancel
Save