Version is: Mongodb 3.2.1
Would like to use Python to do a reptile and then crawl some data to put on the database, think that NoSQL will be very popular, the use of MongoDB, the result, a toss is not easy.
The first problem encountered: official web download and install what will not say. After encountering the MongoDB flashback problem, no reason, Baidu to find information directly to do, the MongoDB as a service to open the command: Mongod.exe--bind_ip IP address--logpath "D:\data\dbConf\mongodb.log "--logappend--dbpath" D:\data\db "--port port number--servicename" Yourservicename "--servicedisplayname" Yourservicename "-- Install
As a result, GG, the problem of flashback is a real problem, and then finally found the data solved:
Remember, when using MongoDB 3.2.1, don't listen to previous versions of the recommendation (create data in the MongoDB directory), and then the flashback problem is resolved. Open the Mongod.exe in the bin directory is to open the database, click Mongo.exe is the operation and management of MongoDB interactive environment.
Second question:
Create user Connection database: Db.adduser ("root", "root") This command is an error, and is estimated to be the previous version;
The right way to create MongoDB users:
After that, check the user:
Db.auth ("root", "root") enter as root user
Used to the MSSQL and MySQL GUI, and then looked for information to find MongoDB Management Studio This graphics software, the results, hehe, what ghost?
Then no then, the use of this thing online almost no, bite the bullet to the official website to see if there is no document (brother English really not confident), saw this:
This page is linked here: Https://wiki.litixsoft.de/display/MMS/Connect+to+server
The rest is almost like the rest.
OK, then the Python and the database code to stick out!!! (^ω^) Refueling
MongoDB uses the basic--installation