Settings for getting started with MongoDB in python

It records how to set up MongoDB, a database that is often used for data analysis.

download

Download link → https://www.mongodb.com/download-center/community


Installation settings

Set the path to C: \ mongodb (not C: \ Program Files)

Set to Custom instead of Complete and create a new folder under C drive. ↓ Image from Gyazo

Installation takes about 5 minutes.

After installation, create a C: \ mongodb \ data folder.


How to start the server

Move the directory with cd C: \ mongodb \ bin and (If you use it often, you may register C: \ mongodb \ bin in the environment coefficient.)

Start the server as a data pass registration: mongod.exe --dbpath C:\mongodb\data

Success if the following screen appears

Image from Gyazo

I think the reason why it often fails is that C: \ mongodb \ data is not created.


Check the contents of MongoDB with GUI

Set the connection destination of MongoDB GUI to mongodb: // localhost: 27017 /. (Of course, an error will occur if the server does not start)

(mongodb: // is required, Port number 27017 is the default setting)

Image from Gyazo


If you can connect, the database table screen will appear and you will be successful. (There should be nothing when you start it for the first time, so please refer to it)

Image from Gyazo


Try with Python

** Qiita **: [Operating MongoDB with python](https://qiita.com/Syoitu/items/db192385a4b2e4884ed5#python%E3%81%A7mongodb%E3%82%92%E6%93%8D%E4 % BD% 9C% E3% 81% 99% E3% 82% 8B) is very easy to understand, so please check it.

Be sure to start the server before connecting with Python every time.


reference

YouTube-MongoDB In 30 Minutes https://www.youtube.com/watch?v=pWbMrx5rVBE

Qiita-Getting Started with MongoDB with python https://qiita.com/Syoitu/items/db192385a4b2e4884ed5#%E3%83%A9%E3%82%A4%E3%83%96%E3%83%A9%E3%83% AA% E3% 81% AE% E3% 82% A4% E3% 83% B3% E3% 82% B9% E3% 83% 88% E3% 83% BC% E3% 83% AB

Recommended Posts

Settings for getting started with MongoDB in python
Getting Started with Python for PHPer-Functions
1.1 Getting Started with Python
Getting Started with Python
Getting Started with Python for PHPer-Super Basics
Getting Started with Python
MongoDB Basics: Getting Started with CRUD in JAVA
[Translation] Getting Started with Rust for Python Programmers
Getting started with AWS IoT easily in Python
Getting Started with Python Functions
Getting Started with Python Django (1)
Getting Started with Python Django (4)
Getting Started with Python Django (3)
Getting Started with Python Django (6)
Python3 | Getting Started with numpy
Getting Started with Python Django (5)
Getting Started with Python responder v2
Getting Started with Python Web Applications
Getting Started with Julia for Pythonista
Getting Started with Python Basics of Python
Getting started with Python 3.8 on Windows
Getting Started with python3 # 1 Learn Basic Knowledge
Getting Started with Python Web Scraping Practice
Tips for dealing with binaries in Python
Process multiple lists with for in Python
MongoDB for the first time in Python
Getting Started with Python Web Scraping Practice
Getting started with Dynamo from Python boto
Get Started with TopCoder in Python (2020 Edition)
Getting Started with Heroku-Viewing Hello World in Python Django with Raspberry PI 3
Building a Windows 7 environment for getting started with machine learning with Python
Getting started with Python with 100 knocks on language processing
Django 1.11 started with Python3.6
Getting started with Android!
Getting Started with Golang 2
Getting Started with Golang 1
Getting Started with Django 1
Logging settings for daily log rotation in python
Getting Started with Optimization
Getting Started with Numpy
Settings for Python coding in Visual Studio Code
Getting Started with Pydantic
Getting Started with Jython
Materials to read when getting started with Python
[Introduction for beginners] Working with MySQL in Python
Getting Started with Django 2
Getting Started with python3 # 2 Learn about types and variables
Super Primer to python-Getting started with python3.5 in 3 minutes
Translate Getting Started With TensorFlow
Getting Started with Tkinter 2: Buttons
Scraping with selenium in Python
Getting Started with Go Assembly
Working with LibreOffice in Python
[Linux] [Initial Settings] Getting Started
Getting Started with PKI with Golang ―― 4
Scraping with chromedriver in python
Debugging with pdb in Python
Search for strings in Python
Use MongoDB ODM in Python
Scraping with Selenium in Python
[Note] Operate MongoDB with Python