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

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -