skip to Main Content

MongoDB not connecting while using host option?

I am unable to connect Atlas MongoDB while using --host option, But i'm able to connect while using --uri option where did i made a mistake? For example: --uri option It's working fine mongodump --uri="mongodb+srv://<username>:<password>@<hostname>/<dbname>" --gzip --out=/dir1/dir2 --host option getting…

VIEW QUESTION

How to restore dump backup in mongodb

I have restore-63bbdc996664dc2524cce24d.tar file, I am restoring it in the MongoDB database tried these commands mongodump --db test --gzip --archive=restore-63bbdc996664dc2524cce24d.tar mongodump --db test --archive=restore-63bbdc996664dc2524cce24d.tar mongodump --host localhost --port 27017 --db test --gzip --archive=restore-63bbdc996664dc2524cce24d.tar mongorestore --drop C:Usersrustamrestore-63bbdc996664dc2524cce24d.tar.gz -v error => Failed:…

VIEW QUESTION

Mongodb – mongodump error: x509: cannot validate certificate for <server-IP> because it doesn't contain any IP SANs

I am trying to setup mongodump along with TLS/SSL encryption. I have been following various articles for this: Self-signed SSL connection using PyMongo, https://mydbops.wordpress.com/2020/05/02/securing-mongodb-cluster-with-tls-ssl/ and some more. So, I have generated the CA certificates. #Create CA Private Certificate openssl genrsa…

VIEW QUESTION
Back To Top
Search