MongoDB Security Settings: Account Setup and Login IP Restrictions

By default, MongoDB has no protection at all. Anyone can log in remotely without any account, which is really dangerous if you use it for programming. So in this post, I’ll show you how to add account settings to MongoDB, so that logging in requires a username and password, and I’ll also show you how to restrict logins by IP address. ...

January 25, 2012 · 6 min

MongoDB: A Document-Oriented NoSQL System, and an Installation Guide for Windows and Linux

A while ago, thanks to Ben’s guidance, I stepped into the NoSQL world, which I had always been interested in but never really tried. The first NoSQL system I came across (and still the only one I know) is MongoDB. I had read many articles about NoSQL and thought it was very different from regular SQL. But after actually using MongoDB, I found the two are quite similar. They differ a bit in principle, and NoSQL performs better. Of course, some things SQL can do, NoSQL can’t, so it comes down to the trade-offs and needs of each person. NoSQL itself isn’t what this post is about, though. This post introduces MongoDB and shows how to install it on Windows. ...

January 24, 2012 · 3 min

How to Create Databases and Collections in MongoDB?

Before, while I was playing with MongoDB, I spent a long time searching its official documentation for how to create databases and tables, but couldn’t find anything. In SQL, you normally have to create tables in advance, and there are commands for that, such as Create Table and Create Database. But I couldn’t find any similar commands in MongoDB. Later I looked it up online and learned that this is one of its features: Schema Free. ...

January 23, 2012 · 2 min