How to Create MongoDB Databases in China? (Step-by-Step Guide)
How to Create MongoDB Databases in China? (Step-by-Step Guide)

TLDR; This MongoDB China tutorial provides you with a step-by-step solution to create and host a MongoDB Database in China.


What is MongoDB?

MongoDB (from the English word “Humongous”, which means “large” in Chinese) is a document database, a database based on distributed file storage. Written in the C++ language, it is designed to provide scalable high-performance data storage solutions for WEB applications.

MongoDB is a product between relational and non-relational databases. It is the most versatile and most like relational database among non-relational databases. The data structure it supports is very loose, it is a bson format similar to json, so it can store more complex data types.

The biggest feature of MongoDB is that the query language it supports is very powerful and its syntax is somewhat similar to an object-oriented query language. One can realize most of the functions similar to single-table query of relational database, and it also supports indexing of data


Is MongoDB available in China?

Yes, MongoDB is a popular database option for businesses in China.

21YunBox provides one-click hosting, free operation and maintenance of MongoDB database for China.


How to Create a MongoDB database in China?

  1. Signup on 21YunBox
  2. Select “Database” in the console
  3. Then click “Add Database”
  4. Use the following values during creation
Options Explanation
Database Give the currently created database instance a name
Database Username The username of the database when connecting to the database. If not specified, the system will automatically generate it.

Note: Database Username cannot be changed after creation.

You will find that in the above configuration, the database password is not filled in. This is because the system will automatically generate it and no additional filling is required.

Create a MongoDB database showing configuration screenshot
Create a MongoDB database showing configuration screenshot


How to Connect to the Database Remotely?

In most cases, we connect to the database to add, delete, modify or search and other actions are connected by code. We have automatically spliced the URL connected to the database, you only need to paste it to complete the configuration and use.


How to Connect to the Database Under the Intranet?

Under the intranet of 21YunBox, you can directly use database URL to connect.

For details, please refer to the database connection section:

 Screenshot of MongoDB after Set-up
Screenshot of MongoDB after Set-up


How to Connect to the Database Under an External Network?

Under the external network of 21YunBox, you can connect to it by using a visualization tool, such as Robot 3T (previously called Robomongo).


Ready to make your app work in China?

Get Started Questions? Talk to an expert.