Mongodb 在git bash shell中找不到mongodump命令
我正在使用mongodb将一些数据转储到使用git bash shell创建的临时文件夹中Mongodb 在git bash shell中找不到mongodump命令,mongodb,shell,git-bash,Mongodb,Shell,Git Bash,我正在使用mongodb将一些数据转储到使用git bash shell创建的临时文件夹中 $mkdir -p ~/tmp/mongodump 我尝试使用以下命令将数据转储到文件夹中 $mongodump -h (name of host server) -d (name of database) -o (name of the output destination folder) 问题是git bash告诉我 bash: mongodump: command not found 我如何让
$mkdir -p ~/tmp/mongodump
我尝试使用以下命令将数据转储到文件夹中
$mongodump -h (name of host server) -d (name of database) -o (name of the output destination folder)
问题是git bash告诉我
bash: mongodump: command not found
我如何让mongodump工作 呃,git bash到底应该是什么?不管怎样,您使用的是什么操作系统?能否执行
mongo
命令?如果是,请尝试执行哪个mongo
,并检查mongodump是否也在此文件夹中。感谢您的帮助,使其正常工作。问题是我没有到mongodump所在的mongo-bin文件夹的路径。@Pjryan你能提供解决方案让其他人也能找到它吗?嗯,git bash到底应该是什么?不管怎样,您使用的是什么操作系统?能否执行mongo
命令?如果是,请尝试执行哪个mongo
,并检查mongodump是否也在此文件夹中。感谢您的帮助,使其正常工作。问题是我没有到mongodump所在的mongo-bin文件夹的路径。@Pjryan您是否也可以提供解决方案,以便其他人可以发现它很有用