Monday, February 22, 2016

Mongo shell and spaces

Did copy/paste into a mongo shell and got an error message that I had too many arguments.

mongoimport –host localhost:27017 –d photoalbum –c albums < C:/Program Files/MongoDB/Server/json/albums.json

and the shell interpreted the space between "Program" and "Files" as something else. Solution: manually type it. 

No comments:

Post a Comment