mongoexport syntax error message

前端 未结 2 1857
梦毁少年i
梦毁少年i 2021-01-02 12:05

I\'m working with mongodb 2.4.3 and I cannot get mongoexport to work. The error message I get with each command is: \"JavaScript execution failed: SyntaxError: Unexpe

2条回答
  •  天涯浪人
    2021-01-02 12:42

    I ran into this too and I solved it executing the command from the path/bin where 'mongoexport' is located.In my case :

     my_path: /usr/local/Cellar/mongodb/2.4.4-x86_64/bin
    
    "mongoexport -d book -c shelf"
    

    'mongod' is located one step upper from 'mongoimport' , 'mongoexport', etc...

提交回复
热议问题