How to import Json file into MongoDB database?
> show dbs
admin (empty)
ceshi 0.078GB
local 0.078GB
> use ceshi
switched to db ceshi
> show tables
ganji_info
ganji_uinfo
ganji_url_info
ganji_url_list
prices_list
sample_info
shouji_info
shouji_urls_list
system.indexes
url_list
> mongoimport -d ceshi -c sample_info e:\sample.json
2016-08-18T08:28:00.151+0800 SyntaxError: Unexpected identifier
I refer to the online saying that I do this, but I always make mistakes and ask the great god to tell me how to do it.
Wipe, I will say how more see more wrong, know why you made a mistake.
mongoimport
This command is not executed in mongo shell!
This command is to be executed independently.