I. Overview
This blog is about how MONGO db imports and exports data, as well as backup data.
The
service side of MONGO DB needs to be opened in order to operate.
Second, export.
the export of MongoDB is very simple open cmd input below command
mongoexport-d foobar-c persons-o D:/persons.json
Tags: also requires thread err read Shell Mon ref for SOCThe error message is as follows: [Email protected] bin]# MONGOMongoDB Shell version V3.4.6-22-ga109a23Connecting to:mongodb://127.0.0.1:270172017-10-16t10:57:28.624+0800 W NETWORK [Thread1] Failed to connect to 127.0.0.1:27017, in (checking socket for error after Poll), Reason:connection refused2017-10-16t10:57:28.625+0800 E QUERY [thread1] error:couldn ' t connect to server 127.0.0.1:27017, connection attempt faile B |[Email protected]/
Mongodb:https://www.mongodb.com/download-center#communityThe native installation directory is as follows:The configuration steps are as follows:1. Create a new folder data (a folder called DB in the folder), new folder log (new Mongodb.log file)2. Create a new mongod.conf file with the following file configurationDBPath = D:\install_pack\mongodb\data\dblogpath = D:\install_pack\mongodb\log\mongodb.loglogappend = Trueport = 270173. Open DOS window in bin directory execute command: mongod-fd:\inst
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.