当前位置:网站首页>‘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’不是内部或外部命令,也不是可运行的程序
边栏推荐
- 4.Oracle-重做日志文件管理
- Operator priority, one catch, no doubt
- Golang uses context gracefully
- Leetcode dynamic programming
- June 29, 2022 daily
- 3. Oracle control file management
- C - XOR to all (binary topic)
- Applicable to Net free barcode API [off] - free barcode API for NET [closed]
- Usage scenarios of golang context
- SQL三种连接:内连接、外连接、交叉连接
猜你喜欢

Game theory acwing 892 Steps Nim game

1.13 - RISC/CISC

TCP's understanding of three handshakes and four waves

MPLS experiment

2021apmcm post game Summary - edge detection

Redis publish subscribe command line implementation

Bit of MySQL_ OR、BIT_ Count function

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

4. Oracle redo log file management

安装OpenCV--conda建立虚拟环境并在jupyter中添加此环境的kernel
随机推荐
高斯消元 AcWing 884. 高斯消元解异或線性方程組
Currently clicked button and current mouse coordinates in QT judgment interface
博弈论 AcWing 893. 集合-Nim游戏
3.Oracle-控制文件的管理
Shutter web hardware keyboard monitoring
Traditional databases are gradually "difficult to adapt", and cloud native databases stand out
Leetcode-6109: number of people who know secrets
TCP's understanding of three handshakes and four waves
Presentation of attribute value of an item
求组合数 AcWing 888. 求组合数 IV
Leetcode-6110: number of incremental paths in the grid graph
How to set the drop-down arrow in the spinner- How to set dropdown arrow in spinner?
11-gorm-v2-03-basic query
MySQL advanced part 2: optimizing SQL steps
C job interview - casting and comparing - C job interview - casting and comparing
[learning] database: MySQL query conditions have functions that lead to index failure. Establish functional indexes
Doing SQL performance optimization is really eye-catching
Leetcode-1200: minimum absolute difference
Leetcode-6111: spiral matrix IV
背包问题 AcWing 9. 分组背包问题