"MongoDB Learning One" environment built under Mac to connect MongoDB UI Client

Source: Internet
Author: User
Tags brew install mongodb install mongodb mongodb server mongodb ui client robomongo

Record MongoDB learning to be lazy to own up to MongoDB server

It's going to be a command, though.

Brew Install MongoDB

But considering the future application or put on the Internet, directly with the ready-made service bar

Download the client (Robomongo is multi-platform, open source free, windows,mac,linux have)


Download not much to say, according to the platform you need to download on the line

Go to mongodblab.com to register a free 500M database.


Create a database

The first time you need to create a user, there will be a yellow warning, click on his line.

Client Configuration

Open Robomongo

Create new

Python connects to MongoDB database


Pip Install Pymongo

>>> Import Pymongo

>>> conn = Pymongo. Connection ("Mongodb://username:[email protected]: 51980/yuliyangdb")

>>> db = conn[' yuliyangdb ']

>>> Db.collection_names ()

[u ' system.indexes ', U ' system.users ', U ' users ', U ' dbtest1 ']

"MongoDB Learning One" environment built under Mac to connect MongoDB UI Client

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.