Error parsing uri

sam-macbookpro:mflix-js samaraiza$ mongorestore --drop --gzip --uri "mongodb+srv://" data
2019-06-23T22:32:04.684-0700	error parsing command line options: error parsing uri (mongodb+srv:// 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:

Was I supposed to do anything special with that downloaded file? When I read the README, it says "
See docs/" 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:

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://" data
1 Like