MongoDB

NoSQL, Big Data database

A PHP program to delete documents from MongoDB collection

December 28, 2012
By
Deleting MongoDB documents from a PHP Program

In this article, we will create a php program to delete documents from MongoDB collection. The development environment for this application include Apache 2.2.22, PHP 5.3.10 and MongoDB 2.2.2. 1. Documents available in “students” collection before executing php program for deleting documents 2. Create a file namely “students_delete.php” in the document root of the...

Read more »

A PHP program to update collection data in MongoDB database with upsert option

December 28, 2012
By
Updating documents using PHP program

In our previous article titled “A PHP program to insert individual and batch data into MongoDB database“, we have developed a php application to insert data into MongoDB collection. In this article, we will create a php program which updates existing data with new data according to the criteria set. If no data is...

Read more »

A PHP program to fetch data from a collection in MongoDB database using cursors

December 27, 2012
By
A php program to fetch data from MongoDB database

In our previous article titled “A PHP program to insert individual and batch data into MongoDB database“, we have created a php program to insert data into MongoDB database. In this article, we will create a php program to fetch the data and display it in a web browser. The development environment for this...

Read more »

A PHP program to insert individual and batch data into MongoDB database

December 26, 2012
By
Program to insert data into MongoDB database

In this article, we will create a PHP application that inserts documents in to a collection individually and as a batch in a MongoDB database. This article is an extension to the article titled “Connecting and authenticating to MongoDB database from PHP using MongoClient“. Using this program, we are inserting data into “students” collection...

Read more »

Connecting and authenticating to MongoDB database from PHP using MongoClient

December 23, 2012
By
Connecting to MongoDB from PHP using MongoClient API class

In our previous article titled “Installing and configuring php mongo driver with Apache in Ubuntu 12.04 LTS“, we have seen, how to install and configure php-mongo driver to connect to a MongoDB database from php. In this article, we will create a PHP program to connect to a MongoDB database by authenticating user name...

Read more »

Installing and configuring php mongo driver with Apache in Ubuntu 12.04 LTS

December 23, 2012
By
Listing mongo module

In this article, we will see how to install and configure php-mongo driver to use with Apache2 in Ubuntu 12.04 LTS. Setting up php5 with Apache2 is discussed in the article titled “Setting up php with Apache2 in Ubuntu 12.04 LTS in command mode“. 1. Installing PHP PEAR package PEAR is a package manager...

Read more »

Enabling and disabling remote access to a MongoDB Server

December 21, 2012
By
MongoDB - Enabling and Disabling Remote Access

In MongoDB, the remote access is enabled by default. Remote access to MongoDB server can be controlled by the variable “bind_ip” specified in the configuration file mongodb.conf. In MongoDB, the variable “bind_ip” is not set. So a MongoDB client, accessed from any remote machine can be connected to the MongoDB server by default. The...

Read more »

MongoDB – Commonly used queries in big data – Part 1 of 4

December 19, 2012
By
MongoDB : Common queries - Part 1

This article is a continuation to the article titled “MongoDB Basics – A Quick Start Tutorial“, where we have created a database called “university” and a collection namely “students” with some data in it. In this article we will see some of the commonly used MongoDB query statements to fetch data from the “students”...

Read more »

MongoDB Basics – A Quick Start Tutorial

December 15, 2012
By
MongoDB Basics : Quick Guide

In this tutorial, we will find quick answers to the some of the basic questions related with MongoDB database. All the MongoDB statements given in this article is tested in MongoDB shell version 2.2.2. Listing all the existing databases in MongoDB? Creating a new MongoDB database? The above command opens the database university , if...

Read more »

Be friend at g+

Subscribe for Lastest Updates

FBFPowered by ®Google Feedburner