I am trying to export a Collection like this:
C:\Program Files\ConEmu>mongoexport --db test --collection person --out personTest.json
connected to: 127.0.0.1
couldn't open [personTest.json]
It is not working. Any suggestions?
You most likely are doing this from a non-elevated command prompt, and are denied to write in Program Files.
You can:
--out C:\Temp\personTest.json
cd
to a directory where you can write and call the executable by full path: C:\Program Files\ConEmu\mongoexport ...
You do not have write permission in this directory. Change your current location to your home directory or some other directory where you have write permission.e.g My Documents, or Desktop , or user/Andre
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With