当前位置:网站首页>‘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’不是内部或外部命令,也不是可运行的程序
边栏推荐
- 【LeetCode】Easy | 20. Valid parentheses
- Winter messenger 2
- Series of how MySQL works (VIII) 14 figures explain the atomicity of MySQL transactions and the principle of undo logging
- Leetcode-1200: minimum absolute difference
- Sword finger offer II 058: schedule
- Record the process of configuring nccl and horovod in these two days (original)
- Sum of three terms (construction)
- 博弈论 AcWing 891. Nim游戏
- 4. Oracle redo log file management
- Records of some tools 2022
猜你喜欢
AE tutorial - path growth animation
将webApp或者H5页面打包成App
There are three kinds of SQL connections: internal connection, external connection and cross connection
容斥原理 AcWing 890. 能被整除的数
区间问题 AcWing 906. 区间分组
阿里巴巴成立企业数智服务公司“瓴羊”,聚焦企业数字化增长
Alibaba established the enterprise digital intelligence service company "Lingyang" to focus on enterprise digital growth
MySQL advanced part 2: the use of indexes
WordPress switches the page, and the domain name changes back to the IP address
Suppose a bank's ATM machine, which allows users to deposit and withdraw money. Now there is 200 yuan in an account, and both user a and user B have the right to deposit and withdraw money from this a
随机推荐
将webApp或者H5页面打包成App
Leetcode-31: next spread
[2021]IBRNet: Learning Multi-View Image-Based Rendering Qianqian
What's wrong with this paragraph that doesn't work? (unresolved)
Redis publish subscribe command line implementation
Traversal of leetcode tree
Day 2 document
Simple selection sort of selection sort
Bash exercise 17 writing scripts to install the server side of FRP reverse proxy software
3.Oracle-控制文件的管理
C - XOR to all (binary topic)
Leetcode stack related
MySQL advanced part 2: the use of indexes
区间问题 AcWing 906. 区间分组
Shutter web hardware keyboard monitoring
Traditional databases are gradually "difficult to adapt", and cloud native databases stand out
2022/6/29-日报
【LeetCode】Day94-重塑矩阵
Alibaba's new member "Lingyang" officially appeared, led by Peng Xinyu, Alibaba's vice president, and assembled a number of core department technical teams
ollvm编译出现的问题纪录