MongoDB database operations and PyCharm visual data operations, mongodbpycharm
Today, I want to store the crawler data to the database. I can see on the Internet that there is a MongoDB database. Then I tried it and recorded some operations for your reference.
I thought there was a corresponding database plug-in Pycharm, but I didn't know whether it was blocked or what happened. I just tried it over the wall, still not successful (I am deeply skeptical that this area shows a list)
As shown in:
Then we can see that we can install the MongoDB database locally, so we started the database installation journey. In fact, it is really easy, less than 30 minutes before and after. The specific process is as follows:
(1) obtain the installation package:
You can go to https://www.mongodb.com/download-center.pdf on the official website to verify basic information ). There is a public installation package on the Internet: https://dl.mongodb.org/dl/win32/x86_64. do you know that these installation packages are not bot-generated data?
(2) Installation Process:
Create a folder: E: \ Nike \ mongodb, decompress the zip file, copy the decompressed bin folder, and display the folder E: \ Nike \ mongodb \ bin.
Create a folder data, create two folders db and log respectively in data, and create a MongoDB. log folder in log. The directory tree is as follows:
Run the cmd command to open the dos window and run the following command:
E: \ Nike \ mongodb \ bin> mongod-dbpath "E: \ Nike \ mongodb \ data \ db"
Access https: // 127.0.0.1: 27017/. The following page appears, indicating that the installation is successful.
Perform operations in the following order:
Test Database: Enter help to view related prompt information.
(3) follow the steps shown in figure 1 in Pycharm and reinstall the plug-in again. The installation is successful.
(4) visualize the MongoDB database in Pycharm, as shown in.
The above is the basic operation process. You are welcome to discuss it.