mongoexport syntax error message

前端 未结 2 1843
梦毁少年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:23

    I found out that running mongoexport from the mongo client--as I was doing--is incorrect. Mongoexport is executed at the command prompt.

    0 讨论(0)
  • 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...

    0 讨论(0)
提交回复
热议问题