MongoDB database operations and PyCharm visual data operations, mongodbpycharm

Source: Internet
Author: User

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.

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.