RSS

Tag Archives: mongodb

Add Authentication to MongoDB Database

To prevent un-authorized access to your MongoDB database, you can add security to it by requiring authentication whenever someone tries to connect.

It’s simple, run the mongod with --auth option. the command is:

// To add user
> use admin;
> db.addUser('admin','123456');

// Start mongod with --auth
$ sudo mongod --auth --dbpath /data

// Run mongo and login
$ mongo localhost:27017
> use admin
> db.auth('admin','123456');

// Include login in mongo command
$ mongo localhost:456789/admin -u admin-p 123456

More MongoDB security option: http://docs.mongodb.org/manual/administration/security/

 
1 Comment

Posted by on May 7, 2015 in General

 

Tags: , , ,

MongoDB Terminology Translation from RDBMS

RDBMS MongoDB
Database Database
Table Collection
Row Document
Index Index
Join Embedding & Linking

Source: 10gen’s Schema Design

Version attow: MongoDB 2.6

 
Leave a comment

Posted by on August 11, 2014 in General

 

Tags: , ,

 
%d bloggers like this: