import sql to mongodb code example
Example 1: import data to mongodb
mongoimport --jsonArray --db YourDatabase --collection YourCollection --file Yourfile.json
Example 2: mongodb import
mongodump -h <127.0.0.1>:<27017> -d <db> -u <user> -p <pw> -o ./
mongorestore ./