代码之家  ›  专栏  ›  技术社区  ›  Anvil

进出口MongoDB

  •  0
  • Anvil  · 技术社区  · 7 年前

    我想把一个Mongo数据库导出到另一个。

    但当我跑的时候:
    mongodump -h ds1sdf4.mlab.com:57064 -d heroku_randomkey -u myuser -p mypassword -o volumes/testdump/mongodb1
    终端告诉我: -bash: mongodump: command not found

    1 回复  |  直到 7 年前
        1
  •  1
  •   RisingSun    7 年前

    你需要安装 mongo 在你的系统上。 mongodump 是那个包裹的一部分。做 brew install mongo here .