Mongo only pawn… in game of life*

About a week ago, Ben Everard on Linux Voice posted an introduction to MongoDB from issue 11 of the magazine. So I thought that now would be a good time to go and see what all the cool database kids are talking about`.

One thing that isn’t mentioned, and which came to bite me, is that Mongo needs to have 3GB available for its journal and other data. This all goes into /var/lib/mongodb and, in my case, this is in my already undersized root partition. Thank you, GParted for digging me out of that particular hole.

Installing MongoDB on my Antergos box is easy:

# pacman -S mongodb mongodb-tools

The mongodb-tools provides import, export and diagnostic capabilities and become useful later.

And then the thing that I always forget. Start the daemon:

$ systemctl start mongodb.service

After this, you can launch the MongDB shell with the mongo command, and you’re in.

Ben’s article is certainly an interesting introduction, but what I found more useful was this article: Getting Started with MongoDB (MongoDB Shell Edition). The guide provides installation instructions for various operating systems, which you can skip past by clicking here. This guide also provides a database that can be downloaded, imported and played around with.

It’s surprisingly easy to get a handle on the basics of MongoDB, and I can certainly see how the objects and methods approach to building and managing data provides a lot more flexibility than traditional relational databases. Now I just need to come up with a project to justify seeing just how much I can get out of this.

* Because whenever I see the name Mongo, I think of this guy.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s