Entries by Thomas Zahn

Running MongoChef on CentOS

When trying to run MongoChef on CentOS, you may experience the following issue: java: cairo-misc.c:380: _cairo_operator_bounded_by_source: Assertion `NOT_REACHED’ failed. ./mongochef.sh: line 11: 28030 Aborted (core dumped) $DIR/../jre/bin/java -jar $DIR/../lib/data-man-mongodb-pro-*.jar This is a general issue for all SWT-based applications on CentOS and is related to the Cairo 2D graphics library on CentOS. The work-around is to […]

How to create new users in MongoDB with MongoChef

Creating and managing users in MongoDB from the command line can be a very cumbersome and unwieldy task. Luckily, MongoChef makes it super-easy to manage your users and their roles for your MongoDB instance. In this tutorial, I will assume that you have already set up a user administrator for your database. If not, please […]

How to install 3T Schema Explorer for MongoDB on Linux

On Linux, 3T Schema Explorer is distributed as a gzipped tarball (.tar.gz). We follow a common directory pattern on Linux in that 3T Schema Explorer’s root directory contains a “bin” folder that contains a runnable .sh file that starts 3T Schema Explorer. To install 3T Schema Explorer, open your shell and cd to a directory […]

How to install 3T Data Compare & Sync for MongoDB on Linux

On Linux, 3T Data Compare & Sync is distributed as a gzipped tarball (.tar.gz). We follow a common directory pattern on Linux in that 3T Data Compare & Sync’s root directory contains a “bin” folder that contains a runnable .sh file that starts 3T Data Compare & Sync. To install 3T Data Compare & Sync, […]

How to install MongoChef on Linux

On Linux, MongoChef is distributed as a gzipped tarball (.tar.gz). We follow a common directory pattern on Linux in that MongoChef’s root directory contains a “bin” folder that contains a runnable .sh file that starts MongoChef. To install MongoChef, open your shell and cd to a directory of your choice. There, unpack and run MongoChef […]

On MongoDB 3.0 and Java

MongoDB 3.0 marks a major new release for MongoDB and is chock-full of new features. Of those, two really stand out and require a bit of attention from Java developers: The new WiredTiger storage engine, and The new challenge-response mechanism SCRAM-SHA-1 for authenticating users with passwords that replaces the old MONGODB-CR method used prior to […]

MongoDB 3.0: Setting up user authentication with MongoChef

Needless to say: you need to secure your MongoDB instances. Leaving aside complementary network-level security such as VPNs or SSH, MongoDB 3.0 itself provides robust built-in user authentication that governs and restricts what users can and cannot see and do inside your MongoDB instances. At the very least, you should run your MongoDB server(s) with […]

How to edit JSON documents in MongoChef

Usually, you will edit a field’s value or its name in MongoChef directly in-place in your tree or table view. However, in cases where you would like to edit a document’s JSON source code directly, MongoChef provides an excellent JSON editor for you. In your tree or table view, right-click on any of your document’s […]

How to switch between tree, table, and JSON view in MongoChef

MongoChef makes it very easy to switch the way you view your documents in your collection. In your collection view, you’ll notice in the right corner of the toolbar a combo box that shows your current view type. Here, you can choose between: 1. Tree View (keyboard short cut: Ctrl+Alt+1 or ⌥⌘1) 2. Table View (keyboard […]

How to copy and paste a MongoDB collection across databases and servers

MongoChef makes copying MongoDB collections across databases and servers a breeze. You literally just copy and paste your collection! 1. Copy MongoDB Collection Select the source collection you want to copy and right-click it in the connection tree. In our case, this is collection test.people on localhost. Choose “Copy Collection” from the context menu. This […]