I am working on a Windows Phone 8.1 Runtime app and have a ListView to display data on a detail page. The problem is that by default the tilt animation is enabled. This is not wanted because it giv…
mongoimport --db DATABASE_NAME --collection COLLECTION_NAME --file JSON_FILE_NAME.json
If you are attempting to run mongorestore from inside the JS shell , you ‘ll encounter this error.
Mongorestore is a standalone application, and is run directly from the terminal.
The following will not work:
C:\Program Files\MongoDB\Server\3.2\bin>mongo.exe MongoDB shell version: 3.2.1 connecting to: test > mongorestore --db test --drop \dump\test 2016-03-24T19:21:44.206+0530 E QUERY [thread1] SyntaxError: missing ; before statement @(shell):1:15 >
If you run mongorestore directly from the terminal you should be successful:
C:\Program Files\MongoDB\Server\3.2\bin>mongorestore [path_to_dump_directory]\dump
For those struggling with 32bit version of Mongodb.
You need to change the default storage engine. There appears to be a version conflict.
Just do as they say and actually use the other default storage engine:
Write the command as follows in your Mongo/bin directory:
mongod –storageEngine=mmapv1 –dbpath [your-path]
[your-path] means path of data/db folder which is the requirement of Mongodb.