CLOUD PAAS / DATABASE

Remotely access MongoDB

This guide has been reviewed and reformatted for Ruk-Com Cloud PaaS. Screens may vary slightly by platform version.

Click or tap a screenshot to view it at its original size.

Objective

This guide explains how to use Remotely access MongoDB on Ruk-Com Cloud PaaS, with ordered procedures and practical verification points.

Before you begin

  • Sign in with an account permitted to manage the relevant environment.
  • Confirm the target environment, region and resources before saving changes.
  • Create a backup or rollback plan before changing a production system.

You can work with your database remotely from your computer. without logging into our dashboard. So here are some tips on how to do things with MongoDB. They can be used with both Env Java and PHP.

Create Environment

1. Log in to Ruk-Com.

2. Press the Create environment button on the top left.

Ruk-Com Cloud PaaS procedure screenshot

3. InEnvironment TopologySelect your server application (such as Tomcat) andMongoDBis the database you want to use. OpenPublic IPv4forMongoDBThen type the Env name, for example remotemongo.

Ruk-Com Cloud PaaS procedure screenshot

Wait a moment for your Env to be created.

4. Click the info button for MongoDB and you will see the Public IP at the end of the list.

Ruk-Com Cloud PaaS procedure screenshot

Remote connection to MongoDB

  1. Create a new project using the appropriate desktop client.MongoDB(We use Database Master 4 as an example)

2. Specify host (your public IP), port number (27017), username and password (When you complete the Env environment, Ruk-Com will send an email with the credentials to the database).

Then pressTest Connection

As you can see, the connection has been successfully established.