MongoDB Simple operation

Source: Internet
Author: User
Tags hadoop ecosystem

Hadoop core technology maker Cloudera will launch the integrated Hadoop ecosystem and MongoDB products in 2014/06, using MongoDB with Ipmala and hbase,hive;

The open source Linux leader Rhel also announced that Rhel will integrate MongoDB to simplify user account management with LDAP;

1, Operation maintenance based on command line;

Start MongoDB based on the command line

/usr/local/mongodb/bin/mongod--port 27017--fork--dbpath=/home/data/mongodb_data/--logpath=/home/data/mongodb/ Mongodb_log.log--logappend

Create a database, build tables in the database, interpolate data;

View all tables under the database show connections;

Inserts data db into the table for the specified database. Tablename.insert ();

View the table Content statement db in the database. Dbname.find ();

2, in the case of MongoDB database driver is done with PHP operation;

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.