osx - Using mongodump: "mongodump: command not found" -
i'm trying dump of local database , seems should using:
mongodump --host localhost:3002
however, terminal tells me:
-bash: mongodump: command not found
am missing something? or going wrong way? i'm using on mac terminal.
i installed mongo (i think) using following commands:
curl http://downloads.mongodb.org/osx/mongodb-osx-x86_64-2.4.5.tgz > mongodb.tgz tar -zxvf mongodb.tgz
if extracted .tgz file, mongodump command not available in path. go /bin/ subdirectory inside directory have extracted mongodb.tgz, mongodump binary should there. can execute:
./mongodump --host localhost:3002
it's better though install mongodb package manager. read page: http://docs.mongodb.org/manual/tutorial/install-mongodb-on-os-x/ , use, example, homebrew install mongodb , have necessary binaries in path.
Comments
Post a Comment