Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

mongo export SyntaxError: missing ; before statement @(shell):1:14

Hi i'm trying to export one of my mongo collection by using this comande line :

mongoexport --host 127.0.0.1 --port 3001 --db meteor --collection subs --out subs.json

but i get this error and i don't understand why because every post use this command and it works for them

2017-11-14T10:23:31.562+0100 E QUERY [thread1] SyntaxError: missing ; before statement @(shell):1:14

like image 390
alpheonix Avatar asked Nov 14 '17 09:11

alpheonix


1 Answers

mongoexport must be run from your OS command shell, not in mongo shell.

like image 135
Hardik Ranpariya Avatar answered Nov 06 '22 01:11

Hardik Ranpariya