当前位置:网站首页>‘mongoexport‘ 不是内部或外部命令,也不是可运行的程序 或批处理文件。
‘mongoexport‘ 不是内部或外部命令,也不是可运行的程序 或批处理文件。
2022-07-05 06:23:00 【Heerey525】
情况一: 老版本出现,可能是你在输入mongo命令之后,在同一命令框中导入导致报错
解决办法: 重新打开一个命令终端执行导入操作
情况二: 老版本出现,可能是没有配置环境变量
解决办法: 配置环境变量即可
情况三: 新版本出现,可能是新版本没有提供这些命令,需要单独下载,验证方式--> 在mongoDB路径下发现没有mongoexport 的命令
解决办法: 需要下载安装 MongoDB Database Tools ,推荐下载msi安装,如果mongoDB是安装在C盘默认路径(C:\Program Files\MongoDB)是一路next下去即可,如果mongoDB是自定义目录,安装MongoDB Database Tools 的时候也要改到相应的目录下
然后去配置环境变量,鼠标右击此电脑,点击属性,
选择高级系统属性,点击环境变量
点击下方系统变量Path,

新增 C:\Program Files\MongoDB\Tools\100\bin (如果你的MongoDB Database Tools是安装默认目录的话,否则自己改成你的目录),然后确定,确定

重新打开一个控制终端,执行导入操作,可以正常使用导入导出命令了
参考资料:
【MongoDB】MongoDB的mongoimport报错的问题对应的解决办法
'mongoimport’不是内部或外部命令,也不是可运行的程序
边栏推荐
- 5.Oracle-表空间
- Applicable to Net free barcode API [off] - free barcode API for NET [closed]
- TypeScript 基础讲解
- MySQL advanced part 1: triggers
- There are three kinds of SQL connections: internal connection, external connection and cross connection
- Dataframe (1): introduction and creation of dataframe
- our solution
- Inclusion exclusion principle acwing 890 Divisible number
- Alibaba's new member "Lingyang" officially appeared, led by Peng Xinyu, Alibaba's vice president, and assembled a number of core department technical teams
- 3. Oracle control file management
猜你喜欢

Alibaba established the enterprise digital intelligence service company "Lingyang" to focus on enterprise digital growth

阿里巴巴成立企业数智服务公司“瓴羊”,聚焦企业数字化增长

SQL三种连接:内连接、外连接、交叉连接

1.手动创建Oracle数据库

Find the combination number acwing 887 Find combination number III

1.13 - RISC/CISC

Sqlmap tutorial (II) practical skills I

Leetcode-6110: number of incremental paths in the grid graph

Redis publish subscribe command line implementation

Game theory acwing 893 Set Nim game
随机推荐
Leetcode divide and conquer / dichotomy
5.Oracle-表空间
Inclusion exclusion principle acwing 890 Divisible number
Series of how MySQL works (VIII) 14 figures explain the atomicity of MySQL transactions and the principle of undo logging
Game theory acwing 893 Set Nim game
Leetcode-6108: decrypt messages
ollvm编译出现的问题纪录
5. Oracle tablespace
Winter vacation water test 1 Summary
MySQL advanced part 1: index
3.Oracle-控制文件的管理
Alibaba established the enterprise digital intelligence service company "Lingyang" to focus on enterprise digital growth
Leetcode stack related
Winter messenger 2
MySQL advanced part 2: the use of indexes
Bash exercise 17 writing scripts to install the server side of FRP reverse proxy software
2048 project realization
Doing SQL performance optimization is really eye-catching
[leetcode] day95 effective Sudoku & matrix zeroing
Traditional databases are gradually "difficult to adapt", and cloud native databases stand out