tencent cloud

Database Overview
Last updated:2025-12-31 11:48:17
Database Overview
Last updated: 2025-12-31 11:48:17
Cloud database is one of the core features provided by CloudBase.
Cloud databases currently falls into two types of databases: document databases and MySQL databases. In actual use, you can choose to use one or both types simultaneously as needed.
The two types of databases are both fully serverless architecture cloud-native databases. They can be used immediately upon activation and support charging based on the computing and storage resources used.
In addition to the databases provided by CloudBase, CloudBase also supports connecting to user-owned MySQL databases. If the user-owned database is accessible via the public network, CloudBase provides the ability to connect and use such databases.

MySQL Cloud Database

In a CloudBase environment, there is one and only one MySQL cloud database instance, which can coexist with other database instances.
In MySQL databases, the following concepts are included:
Table
A table is the basic unit in a MySQL database for data storage. A table consists of rows and columns, where rows represent each record in the table and columns represent the attributes in the records. Each table has a unique name used to identify and distinguish different tables.
The concept of a table in a MySQL database is similar to that of a collection in a document database.
Rows
In a MySQL database, rows in a table represent each record in the table. Each row contains a set of data, with each data corresponding to a column in the table.
The concept of rows in a MySQL database is similar to that of a record in a document database.
Columns
In a MySQL database, columns in a table define the structure of data stored in the table. Each column has a name and a data type, and the data type defines the type of data that can be stored in that column, such as integers, strings, or dates.
The currently available MySQL version is 8.0. The current MySQL cloud database does not publicly provide directly accessible information such as IP addresses or ports. For database management, you can use Database Management Center (DMC). When the database is called, in addition to read-write operations through the data model method, native query commands for the database are also provided to execute SQL statements, delivering the same user experience as a native database.

Database Implementation and Features

The current MySQL cloud database uses Tencent Cloud's TDSQL-C for MySQL as the underlying database implementation. TDSQL-C for MySQL is a new generation of cloud-native relational database independently developed by Tencent Cloud. It combines the advantages of traditional databases, cloud computing, and new hardware technologies to provide users with database services featuring ultimate elasticity, high performance, massive storage, and security and reliability. The current database adopts a storage-compute separation mode, with instances deployed in a randomly selected single availability zone within the CloudBase environment region.
The current database compute nodes automatically scale based on request pressure and enter a sleep state when there are no requests for a period of time to save costs. The sleep feature of database compute nodes can be further configured and modified in database settings. If the sleep feature is disabled, it avoids slow initial request responses due to cold startups of compute nodes, but leads to ongoing fees. You can choose the configuration based on actual needs.

Self-Owned MySQL Databases

In the CloudBase environment, you can create multiple self-owned MySQL databases, with each connection configuration corresponding to a MySQL database.
When a self-owned MySQL database connection configuration is created, the following information is typically configured:
Host: the domain name or IP address of the server hosting the MySQL database.
Port: the port of the MySQL database, defaulting to 3306.
Database name: the name of the MySQL database.
Username: the username for the MySQL database.
Password: the password for the MySQL database.
Timeout configuration: the connection timeout, defaulting to 5 seconds.
Connection parameters: Database connection parameters support character sets, statement caching, read-write timeout, auto-commit, and other parameters to optimize and control database connection behavior.
When using a self-owned MySQL database, you can create multiple tables and corresponding data models in one database, or create tables and models in different databases. However, when configuring association relationships in data models, associated models cannot span different databases. That is, you cannot configure association relationships between document cloud databases, MySQL cloud databases, and different self-owned databases.

IP Address Allowlist

Self-built MySQL databases exposed to the public network usually need to be configured with an IP address allowlist to prevent unauthorized access. You can add the following IP addresses to the IP address allowlist to allow access for the CloudBase data model components. All of them need to be added to the allowlist:
175.24.211.44, 
175.24.212.162, 
175.24.213.48, 
175.24.214.104, 
175.24.214.93, 
49.234.25.245, 
49.234.27.58, 
49.234.3.160, 
49.234.34.31, 
49.234.35.33,

Selecting Database Type

Currently, CloudBase provides three types of databases. For how to select which type to use, see the following table:
Database Type
Strengths
MySQL Cloud Databases
Structured data model, supporting access via standard SQL statement.
Self-Owned MySQL Databases
Existing data can be accessed and used directly, while self-owned databases are more flexible and controllable.
Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback