Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Web Technology by (50.2k points)
As a beginner, I just want a sample MongoDB database(like the world for MySQL or Northwind for MsSQL) that I can import and play with it. Is some database available?

1 Answer

0 votes
by (108k points)
edited by

The following steps tells you how to import from the JSON file in windows:

First, you have to download the JSON file and store it inside a folder(d:\sample) 

After downloading, just open the command prompt, start the mongodb server by going into the bin directory and type:

mongod

Now open another command prompt and move to the bin directory again and write the following code:

C:\mongodb\bin>mongoimport --db test --collection zips --file d:\sample\zips.json

The import should start working instantly and at the end, it will display something like this: 

Thu Dec 19 17:11:22 imported 29470 objects

Are you interested in Full Stack Development? Enroll in this Full Stack Developer Certification to learn from experts. 

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
3 answers

Browse Categories

...