当前位置:网站首页>'mongoexport 'is not an internal or external command, nor is it a runnable program or batch file.

'mongoexport 'is not an internal or external command, nor is it a runnable program or batch file.

2022-07-05 06:27:00 Heerey525

Situation 1 : The old version appears , Maybe you're typing mongo After the command , Importing in the same command box results in an error
terms of settlement : Reopen a command terminal to perform the import operation

Situation two : The old version appears , The environment variable may not be configured
terms of settlement : Just configure the environment variables

Situation three : A new version appears , Maybe the new version doesn't provide these commands , Need to download separately , Verification mode --> stay mongoDB No... Found under the path mongoexport The order of
 Insert picture description here

terms of settlement : Need to download and install MongoDB Database Tools , Recommended download msi install , If mongoDB Is installed in C Disk default path (C:\Program Files\MongoDB) It's all the way next Go down to , If mongoDB It's a custom Directory , install MongoDB Database Tools You should also change it to the corresponding directory
 Insert picture description here
Then configure the environment variables , Right click the computer , Click properties ,
 Insert picture description here

Select advanced system properties , Click environment variable
 Insert picture description here

Click the system variable below Path,
 Insert picture description here
 Insert picture description here

newly added C:\Program Files\MongoDB\Tools\100\bin ( If your MongoDB Database Tools If it is the default directory for installation , Or change it into your directory ), Then determine , determine
 Insert picture description here
 Insert picture description here
Reopen a control terminal , Perform import operation , You can use the import and export commands normally

Reference material :
【MongoDB】MongoDB Of mongoimport The corresponding solution to the problem of error reporting
'mongoimport’ Not an internal or external command , It's not a runnable program

原网站

版权声明
本文为[Heerey525]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/186/202207050623067911.html