Mongodb cannot find mongoimport error when importing data using mongoimport ('mongoimport' is not an internal or external command, nor is it an executable program)

When using mongoimport to import data in WIN10 system, mongoimport cannot be found because there is no mongoimport.exe in the bin folder of the mongodb installation directory. So even if the environment variable is added, it is useless.

Insert picture description here

Solution:
1. Download MongoDB Database Tools at https://www.mongodb.com/try/download/database-tools?tck=docs_databasetools.
Insert picture description here

2. After the download is complete, unzip, copy and paste all the .exe files in the bin folder of the compressed package to the bin folder of your MongoDB installation directory (the installation directory here is D:\DevelopTools\mongodb\bin).

Insert picture description here

Insert picture description here

3. Add the mongodb database installation directory all the way to the bin folder to the environment variable Path, (here is D:\DevelopTools\mongodb\bin)

Insert picture description here

Insert picture description here

4. After completion, enter the mongoimport test again, as shown in the figure below, the problem is solved.
Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_44517301/article/details/114823073