tencent cloud

TencentDB for MySQL
TencentDB for MySQL provides users with enterprise-level cloud database services that are secure, reliable, high-performance, and easy to maintain. It has six major enterprise-level features, including enterprise-level customized kernels, high availability (HA), high reliability, security, scaling, and intelligent Ops. With TencentDB for MySQL, users can achieve minute-level database deployment, elastic scaling, and fully automated Ops and management. It is not only economical, but also stable, reliable, and easy to maintain.
Why choose TencentDB for MySQL
Enterprise-Level Kernel
HA
Security
Scaling
Intelligent Ops
TXSQL is a MySQL kernel branch maintained by the TencentDB team. It is 100% compatible with the native MySQL version and provides many features similar to MySQL Enterprise Edition, such as enterprise-level transparent data encryption, audit, dynamic thread pools, encryption functions, backup recovery, and parallel queries. TXSQL has not only made a lot of optimizations in the InnoDB storage engine, query optimization, and replication performance, but also improved the usability and maintainability of TencentDB for MySQL. It provides users with all the features of TencentDB for MySQL and provides enterprise-level disaster recovery (DR), recovery, monitoring, performance optimization, read-write separation, transparent data encryption, audit, and other advanced features.
Multiple deployment architectures, powerful control and support systems, rich multi-site and multi-active solutions, and peripheral ecological plugins ensure that TencentDB for MySQL can run continuously, stably, and efficiently. Multiple architectures available: Single-node, dual-node, triple-node, and cloud disk deployment architectures are provided, and asynchronous, semi-synchronous, and strong synchronous replication methods are provided. Multi-site and multi-active solutions: Multi-availability zone (AZ) deployment, failover, and cross-region DR are supported. Powerful management and control services: The management and control system has a powerful functional matrix and features high stability through years of continuous evolution and optimization with massive businesses. Comprehensive hot and cold backups: Physical servers with the same architecture are used for real-time hot backup, and physical cold backup of up to 1,830 days and multiple copies of backup data are provided.
TencentDB for MySQL provides a series of advanced and complete compliance security protection and data encryption capabilities, and gradually forms an overall database security governance solution. Database audit: performs fine-grained audit for database operations in real time, performs compliance management, and reports alarms for risk behaviors. Transparent data encryption: provides transparent data encryption. Even if the backup data is leaked, the data is unavailable without a key, meeting the compliance requirements of static data encryption. Sensitive data discovery: automatically discovers sensitive instance data based on identification rules, and protects data by type and level. Data masking: executes and manages data masking tasks intelligently, ensuring data masking in different business scenarios and enterprise core data confidentiality.
TencentDB for MySQL has flexible and efficient scale-in and scale-out capabilities. In the event of surge business traffic, read-only instances can be scaled out within several minutes to easily cope with traffic peaks. Read-only instances: They are used to horizontally scale out the reading capability of the database. Read-only instances in the same region and cross regions are supported, and all of the instances have independent addresses to help balance business access load. Database proxy: It proxies all access requests from the application server to the database, and provides advanced features, such as automatic read-write separation, connection pools, and momentary disconnection prevention. Rapid upgrade: The database can be upgraded to instance specifications with higher performance and capacity. The upgrade process does not affect normal business access and use, achieving rapid and smooth scale-out and meeting rapid business development requirements.
TencentDB for MySQL connects to TencentDB for DBbrain to quickly replicate the mature experience of senior database administrators through machine learning and big data means, automate diagnosis and optimization of a large number of database problems, and serve cloud and off-cloud enterprises. 7/24 exception diagnosis and optimization opens a new mode of unattended database Ops. With WeChat mini programs and PC clients, users can grasp the database status anytime and anywhere. With professional deep learning algorithm models and massive sample training environments, more accurate performance optimization is performed.
Discover the key features​​
Easy-to-Use Managed Deployment

Users can create a production-level MySQL database with simple clicks in the console, which is ready to use out of the box, and fine configuration and tuning features are provided.

Easy-to-Use Managed Deployment

Users can create a production-level MySQL database with simple clicks in the console, which is ready to use out of the box, and fine configuration and tuning features are provided.

Dedicated Kernel Optimization

With leading I/O throughput and a deeply customized and developed MySQL kernel, the performance of TencentDB for MySQL far exceeds self-built databases. It has a simplified backend architecture, which is easier to maintain and manage.

Dedicated Kernel Optimization

With leading I/O throughput and a deeply customized and developed MySQL kernel, the performance of TencentDB for MySQL far exceeds self-built databases. It has a simplified backend architecture, which is easier to maintain and manage.

Comprehensive Protection Mechanisms

TencentDB for MySQL provides 99.9999999% data reliability and up to 99.99% service availability, with complete automatic data backup and lossless recovery mechanisms.

Comprehensive Protection Mechanisms

TencentDB for MySQL provides 99.9999999% data reliability and up to 99.99% service availability, with complete automatic data backup and lossless recovery mechanisms.

Strong Synchronous Replication

TencentDB for MySQL supports strong synchronous data replication, and its kernel has been optimized to greatly improve data replication performance and effectively solve phantom read and temporary transaction issues.

Strong Synchronous Replication

TencentDB for MySQL supports strong synchronous data replication, and its kernel has been optimized to greatly improve data replication performance and effectively solve phantom read and temporary transaction issues.

Comprehensive Routine Monitoring

The console provides more than 70 important metrics, which can be used to compare the instance running load in multiple dimensions through custom monitoring views.

Comprehensive Routine Monitoring

The console provides more than 70 important metrics, which can be used to compare the instance running load in multiple dimensions through custom monitoring views.

Custom Alarms

Custom resource threshold alarms can report issues to Ops personnel promptly, helping users know the running status of instances and respond to problems quickly.

Custom Alarms

Custom resource threshold alarms can report issues to Ops personnel promptly, helping users know the running status of instances and respond to problems quickly.

Database Autonomy

TencentDB for MySQL perfectly adapts to TencentDB for DBbrain, realizing intelligent Ops and effectively ensuring secure, stable, and efficient operation of database services.

Database Autonomy

TencentDB for MySQL perfectly adapts to TencentDB for DBbrain, realizing intelligent Ops and effectively ensuring secure, stable, and efficient operation of database services.

Data Migration

With Data Transfer Service (DTS), automatic database migration is provided, which greatly simplifies database cloud migration and realizes seamless business migration to the cloud.

Data Migration

With Data Transfer Service (DTS), automatic database migration is provided, which greatly simplifies database cloud migration and realizes seamless business migration to the cloud.

Data DR

Intra-city multi-AZ DR/cross-city DR guarantees HA. If a fault causes service interruption, businesses can be switched to the DR instance quickly to achieve database DR.

Data DR

Intra-city multi-AZ DR/cross-city DR guarantees HA. If a fault causes service interruption, businesses can be switched to the DR instance quickly to achieve database DR.

Easy-to-Use Managed Deployment

Users can create a production-level MySQL database with simple clicks in the console, which is ready to use out of the box, and fine configuration and tuning features are provided.

Dedicated Kernel Optimization

With leading I/O throughput and a deeply customized and developed MySQL kernel, the performance of TencentDB for MySQL far exceeds self-built databases. It has a simplified backend architecture, which is easier to maintain and manage.

Comprehensive Protection Mechanisms

TencentDB for MySQL provides 99.9999999% data reliability and up to 99.99% service availability, with complete automatic data backup and lossless recovery mechanisms.

Strong Synchronous Replication

TencentDB for MySQL supports strong synchronous data replication, and its kernel has been optimized to greatly improve data replication performance and effectively solve phantom read and temporary transaction issues.

Comprehensive Routine Monitoring

The console provides more than 70 important metrics, which can be used to compare the instance running load in multiple dimensions through custom monitoring views.

Custom Alarms

Custom resource threshold alarms can report issues to Ops personnel promptly, helping users know the running status of instances and respond to problems quickly.

Database Autonomy

TencentDB for MySQL perfectly adapts to TencentDB for DBbrain, realizing intelligent Ops and effectively ensuring secure, stable, and efficient operation of database services.

Data Migration

With Data Transfer Service (DTS), automatic database migration is provided, which greatly simplifies database cloud migration and realizes seamless business migration to the cloud.

Data DR

Intra-city multi-AZ DR/cross-city DR guarantees HA. If a fault causes service interruption, businesses can be switched to the DR instance quickly to achieve database DR.

View All
How it works in various businesses scenarios
All-Scenario High Availability Architecture
Gaming
E-Commerce
Finance
Website/SaaS Scenarios
Challenges

Databases are critical to core business operations, and data serves as the essential asset and lifeline of an enterprise. Ensuring stable production and operations requires a highly available database architecture. Database failures, data losses, or downtime can result in severe business impact and financial losses for an enterprise. TencentDB for MySQL offers an All-Scenario High Availability Architecture (AS-HAA). This architecture provides end-to-end and full-process safeguards to ensure business stability.

Capabilities
High stability: automatic elastic scaling, proximity-based access, and low network latency
High availability: cross-AZ and cross-region deployment for all components
Powerful data processing capability and fast response
Efficient fault diagnosis and recovery
Challenges

In gaming scenarios, players have long online sessions, and the business lifecycle is extended. Operations are mostly partitioned servers, resulting in large data volumes and stringent requirements for low latency. Furthermore, gaming services require extremely high availability to prevent server downtime and data loss. Rollback operations are critical in gaming, requiring a balance between efficiency and data integrity while minimizing the impact on users.

Capabilities
High performance: elastic scaling of computing resources, minute-level deployment of server databases, and data rollback to any point in time
High availability: fully automated disaster recovery and failover without user impact
Challenges

In e-commerce scenarios, sudden traffic surges can place immense pressure on server resources, requiring a highly scalable and flexible database architecture. High-concurrency access to hot data also requires support from a high-performance, highly available architecture. In addition, e-commerce operations typically involve large data volumes, posing performance demands for multi-table join queries and requiring real-time responsiveness.

Capabilities
High performance: Eliminates performance bottlenecks for high-concurrency access to hot data, and provides quick and automatic scaling to manage traffic surges.
High availability: Delivers strong data consistency and minimizes losses caused by single points of failure.
High security: Mitigates security risks arising from malicious attacks, data leaks, or improper manual operations.
Challenges

Key challenges for financial services in database architecture include high security, processing of large data volumes, high performance, high availability, and high scalability. Additional complexities include complex query management, transaction isolation, and transaction optimization. The architecture must be designed to adhere to rigorous regulatory and compliance standards, guaranteeing data integrity, stability, and reliability.

Capabilities
High security: Meets the requirements of the Multi-Level Protection Scheme (MLPS); establishes a data security protection network covering phases before, during, and after an incident; and employs multiple layers of encryption to prevent data leaks.
High availability: Offers strong data consistency and cross-region disaster recovery, and minimizes losses caused by single points of failure.
Business pain points

The pain points of personal websites and SaaS scenarios in the database architecture include persistent data storage and data security. In addition, various user queries and data analysis requirements need to be handled.

Provided capabilities
Cost-effectiveness: Single-node instances have lower prices, and Enhanced SSDs are used for underlying storage, ensuring excellent performance.
Rapid configuration change: Computing and storage resources can be scaled out quickly.
Recommended matching features
Resources and documentation
Billing Overview
This document helps you quickly understand the billing modes supported by TencentDB for MySQL.
Getting Started
This document describes how to use TencentDB for MySQL quickly.
Operation Guide
This document provides guidance for common operations related to TencentDB for MySQL.
Purchase Guide
This document describes how to purchase and select products in terms of the storage engine, instance architecture, and storage type.
FAQS

Frequently Asked

Questions

Common FAQs
Billing
Network
Instance Types
Regions and AZs
What is TencentDB for MySQL?

TencentDB for MySQL is a high-performance enterprise-level database service professionally built by Tencent Cloud based on the world's most popular open-source database MySQL. It is 100% compatible with the MySQL protocol and is suitable for relational database scenarios.

What are the applicable business scenarios of TencentDB for MySQL?

TencentDB for MySQL can be used wherever the MySQL database is applicable. TencentDB for MySQL is more convenient and reliable than self-built MySQL databases.

TencentDB for MySQL is fully compatible with the MySQL protocol and provides primary-secondary hot backup and scheduled cold backup services. In addition, it supports seamless instance upgrades, which can minimize developers' investment in deployment, monitoring, scale-out, and fault recovery and allow them to focus on product development and operations.

Which MySQL versions does TencentDB for MySQL support?

TencentDB for MySQL uses MySQL versions 5.6, 5.7, and 8.0.

What are the purchase channels for TencentDB for MySQL?

TencentDB for MySQL can be purchased on the official website and using APIs: Creating an Instance (Yearly/Monthly Subscription) and Creating an Instance (Pay-as-You-Go) .

What do prepaid and postpaid mean? How do I select a billing mode?

Prepaid: Generally, it is a yearly/monthly subscription purchase form, that is, users should pay for fees before use. The system calculates the purchase amount based on the type and quantity of cloud services selected by a user and deducts the amount from the user's account.

Postpaid (also known as pay-as-you-go): Resources are applied for first as required, and fees are charged based on actual resource usage during settlement. Fees are settled based on the resource settlement cycle.

How to select: It is recommended that you select the prepaid mode if the business scenario is stable and cloud resources need to be used for a long time. It is recommended that you select the postpaid mode if business development fluctuates greatly and cannot be accurately predicted, or if the resource use is temporary and sudden.

How is the price calculated?

When you purchase a TencentDB for MySQL instance, Tencent Cloud provides you with a price calculator . You can calculate the price in the calculator.

What are the differences between the private and public IP addresses of TencentDB for MySQL?

Private IP address: It is the connection address used to provide services to clients with private IP addresses.

Public IP address: It is the connection address for connecting to clients with public IP addresses.

They can be directly mapped to each other through network address translation.

Servers in the same region can communicate with each other through a private network. Servers in different regions can only communicate with each other through the public network.

What is VPC?

Tencent Cloud Private Network (VPC) is a logically isolated network space that you customize on Tencent Cloud. Similar to the traditional network running in your data center, it manages your service resources on Tencent Cloud, including Cloud Virtual Machine (CVM) instances, Cloud Load Balancer (CLB) instances, and TencentDB for MySQL instances. Through VPC, data can be shared between TencentDB for MySQL instances and CVM instances in different regions.

What is a read-only instance?

In an application scenario with a small number of write requests but a large number of read requests to the database, one instance may not be able to resist the read load and may even affect the main business. To elastically scale out the reading capabilities to share the database load, you can create one or more read-only instances in a region and use the read-only instances to handle a large number of database read requests, thereby increasing the application throughput.

What is a DR instance?

In scenarios with strong requirements for business continuity and data reliability or regulatory requirements, TencentDB for MySQL provides DR instances to help users improve business continuity capabilities at low costs and improve data reliability. A DR instance is a database backup of the primary instance.

Which TencentDB for MySQL versions support read-only instances?

Read-only instances can only be enabled for the primary database of MySQL 5.6 (GTID) or later.

Which storage engines can be used for TencentDB for MySQL read-only instances?

When a read-only instance is created, two different engines, that is, the InnoDB engine and the LibraDB engine can be selected. The InnoDB engine can handle more concurrent read requests that the primary instance cannot carry under traditional circumstances. The LibraDB engine processes complex SQL statements in businesses, such as multi-table joins, group by of big data, and subqueries through columnar storage and parallel engines. If you create a read-only instance with a database containing MyISAM tables, MyISAM tables are converted to InnoDB tables forcibly during creation.

Which TencentDB for MySQL versions support DR instances?

To create a DR instance, the primary instance should be MySQL 5.6 or later, and the GTID feature should be enabled.

What is a region?

Different regions of Tencent Cloud are isolated to ensure maximum stability and fault tolerance between different regions. Covered regions include:

China: South China, East China, North China, Southwest China, and Hong Kong (China).

Other countries: Southeast Asia Pacific, Northeast Asia Pacific, Western United States, Eastern United States, Europe, South America, and the Middle East.

We will gradually increase the regions to cover more nodes. It is recommended that users select the region closest to their customers, which can reduce the access latency and increase the download speed.

How can I select a region suitable for me?

Select a region close to your users. Please select a TencentDB for MySQL region based on the geographical locations of your users. The closer the TencentDB for MySQL instance is to the access customers, the smaller the access latency and the higher the access speed. Example: If most of your users are located near the Yangtze River Delta, Shanghai is a better choice.

Select a region based on the principle of private network communication in the same region. Private networks in the same region can communicate with each other. Private networks in different regions cannot communicate with each other. When you purchase a TencentDB for MySQL instance, it is recommended that you select the region of your CVM instance to reduce access latency.

What is the isolation degree between AZs? AZs run in their independent and physically different facilities and are designed to be highly reliable. AZs do not share common failure points, such as generators and cooling equipment. In addition, they are physically independent of each other. Even if extremely rare disasters, such as fires, tornadoes, or floods, occur in an AZ, only this AZ is affected.

FAQS

Frequently Asked

Questions

Common FAQs
Billing
Network
Instance Types
Regions and AZs
What is TencentDB for MySQL?

TencentDB for MySQL is a high-performance enterprise-level database service professionally built by Tencent Cloud based on the world's most popular open-source database MySQL. It is 100% compatible with the MySQL protocol and is suitable for relational database scenarios.

What are the applicable business scenarios of TencentDB for MySQL?

TencentDB for MySQL can be used wherever the MySQL database is applicable. TencentDB for MySQL is more convenient and reliable than self-built MySQL databases.

TencentDB for MySQL is fully compatible with the MySQL protocol and provides primary-secondary hot backup and scheduled cold backup services. In addition, it supports seamless instance upgrades, which can minimize developers' investment in deployment, monitoring, scale-out, and fault recovery and allow them to focus on product development and operations.

Which MySQL versions does TencentDB for MySQL support?

TencentDB for MySQL uses MySQL versions 5.6, 5.7, and 8.0.

What are the purchase channels for TencentDB for MySQL?

TencentDB for MySQL can be purchased on the official website and using APIs: Creating an Instance (Yearly/Monthly Subscription) and Creating an Instance (Pay-as-You-Go) .

What do prepaid and postpaid mean? How do I select a billing mode?

Prepaid: Generally, it is a yearly/monthly subscription purchase form, that is, users should pay for fees before use. The system calculates the purchase amount based on the type and quantity of cloud services selected by a user and deducts the amount from the user's account.

Postpaid (also known as pay-as-you-go): Resources are applied for first as required, and fees are charged based on actual resource usage during settlement. Fees are settled based on the resource settlement cycle.

How to select: It is recommended that you select the prepaid mode if the business scenario is stable and cloud resources need to be used for a long time. It is recommended that you select the postpaid mode if business development fluctuates greatly and cannot be accurately predicted, or if the resource use is temporary and sudden.

How is the price calculated?

When you purchase a TencentDB for MySQL instance, Tencent Cloud provides you with a price calculator . You can calculate the price in the calculator.

What are the differences between the private and public IP addresses of TencentDB for MySQL?

Private IP address: It is the connection address used to provide services to clients with private IP addresses.

Public IP address: It is the connection address for connecting to clients with public IP addresses.

They can be directly mapped to each other through network address translation.

Servers in the same region can communicate with each other through a private network. Servers in different regions can only communicate with each other through the public network.

What is VPC?

Tencent Cloud Private Network (VPC) is a logically isolated network space that you customize on Tencent Cloud. Similar to the traditional network running in your data center, it manages your service resources on Tencent Cloud, including Cloud Virtual Machine (CVM) instances, Cloud Load Balancer (CLB) instances, and TencentDB for MySQL instances. Through VPC, data can be shared between TencentDB for MySQL instances and CVM instances in different regions.

What is a read-only instance?

In an application scenario with a small number of write requests but a large number of read requests to the database, one instance may not be able to resist the read load and may even affect the main business. To elastically scale out the reading capabilities to share the database load, you can create one or more read-only instances in a region and use the read-only instances to handle a large number of database read requests, thereby increasing the application throughput.

What is a DR instance?

In scenarios with strong requirements for business continuity and data reliability or regulatory requirements, TencentDB for MySQL provides DR instances to help users improve business continuity capabilities at low costs and improve data reliability. A DR instance is a database backup of the primary instance.

Which TencentDB for MySQL versions support read-only instances?

Read-only instances can only be enabled for the primary database of MySQL 5.6 (GTID) or later.

Which storage engines can be used for TencentDB for MySQL read-only instances?

When a read-only instance is created, two different engines, that is, the InnoDB engine and the LibraDB engine can be selected. The InnoDB engine can handle more concurrent read requests that the primary instance cannot carry under traditional circumstances. The LibraDB engine processes complex SQL statements in businesses, such as multi-table joins, group by of big data, and subqueries through columnar storage and parallel engines. If you create a read-only instance with a database containing MyISAM tables, MyISAM tables are converted to InnoDB tables forcibly during creation.

Which TencentDB for MySQL versions support DR instances?

To create a DR instance, the primary instance should be MySQL 5.6 or later, and the GTID feature should be enabled.

What is a region?

Different regions of Tencent Cloud are isolated to ensure maximum stability and fault tolerance between different regions. Covered regions include:

China: South China, East China, North China, Southwest China, and Hong Kong (China).

Other countries: Southeast Asia Pacific, Northeast Asia Pacific, Western United States, Eastern United States, Europe, South America, and the Middle East.

We will gradually increase the regions to cover more nodes. It is recommended that users select the region closest to their customers, which can reduce the access latency and increase the download speed.

How can I select a region suitable for me?

Select a region close to your users. Please select a TencentDB for MySQL region based on the geographical locations of your users. The closer the TencentDB for MySQL instance is to the access customers, the smaller the access latency and the higher the access speed. Example: If most of your users are located near the Yangtze River Delta, Shanghai is a better choice.

Select a region based on the principle of private network communication in the same region. Private networks in the same region can communicate with each other. Private networks in different regions cannot communicate with each other. When you purchase a TencentDB for MySQL instance, it is recommended that you select the region of your CVM instance to reduce access latency.

What is the isolation degree between AZs? AZs run in their independent and physically different facilities and are designed to be highly reliable. AZs do not share common failure points, such as generators and cooling equipment. In addition, they are physically independent of each other. Even if extremely rare disasters, such as fires, tornadoes, or floods, occur in an AZ, only this AZ is affected.

Are you ready to get started?
Empowering enterprises' cloud migration and digital transformation to unleash unlimited potential