Migrating Couchbase to MongoDB: Setting Up the Environment

We need to download the following software for this chapter.

  • Couchbase Server Community or Enterprise Edition 3.0.x (or later version) couchbase-server-enterprise_3.0.3-windows_amd64.exe file from www.couchbase.com/nosql-databases/downloads. Double-click on the exe file to launch the installer and install Couchbase Server.
  • Eclipse IDE for Java EE Developers from www.eclipse.org/downloads/.
  • MongoDB 3.05 (or a later version) Windows binaries mongodb-win32-x86_64-3.0.5- signed.msi from www.mongodb.org/downloads. Double-click on the mongodb-win32- x86_64-3.0.5-signed file to install MongoDB 3.05. Add the bin directory, for example C:\Program Files\MongoDB\Server\3.0\bin, to the PATH environment variable.
  • Java 7 from www.oracle.com/technetwork/java/javase/downloads/jdk7- downloads-1880260.html.

Create a directory C:\data\db for the MongoDB data if not already created for an earlier chapter. Start MongoDB with the following command from a command shell.


MongoDB gets started waiting for connections on port 27017.

Log in to the Couchbase Console. Click on Data Buckets in the Couchbase Admin Console, which is accessed with URL localhost:8091. The default bucket should be listed in Couchbase Buckets. Click on the Documents button for the default bucket. Initially the default bucket should not have any documents in it as shown in Figure 7-1.

Source: Vohra Deepak (2015), Pro MongoDB™ Development, Apress; 1st ed. edition.

Leave a Reply

Your email address will not be published. Required fields are marked *