Error parsing uri

sam-macbookpro:mflix-js samaraiza$ mongorestore --drop --gzip --uri "mongodb+srv://skit0:mypassword@mflix-elhuj.mongodb.net/test?retryWrites=true&w=majority" data
2019-06-23T22:32:04.684-0700	error parsing command line options: error parsing uri (mongodb+srv://skit0:mypassword@mflix-elhuj.mongodb.net/test?retryWrites=true&w=majority): scheme must be "mongodb"
2019-06-23T22:32:04.684-0700	try 'mongorestore --help' for more information

note—“mypassword” is a placeholder for my actual password.

I downloaded the mongodb enterprise server from here: https://www.mongodb.com/download-center/enterprise

Was I supposed to do anything special with that downloaded file? When I read the README, it says "
See docs/building.md" but that directory or file does not exist in the downloaded file.

Compass connects fine with the provided URI.

Nvm. I resolved my issue by reinstalling mongodb following these instructions after downloading mongodb enterprise:
https://docs.mongodb.com/manual/tutorial/install-mongodb-enterprise-on-os-x/

Note—the ssl in tar -zxvf mongodb-osx-ssl-x86_64-enterprise-4.0.10.tgz needs to be removed.
From here, I copied and pasted the bin files in the downloaded bin directory into /usr/local/bin.

Running the mongorestore command seems to have worked afterwards. However, I also specified the /mflix directory in the db.

mongorestore --drop --gzip --uri "mongodb+srv://skit0:mypw@mflix-elhuj.mongodb.net/mflix" data
1 Like