tencent cloud

TencentDB for MySQL

Setting the Read-Write Attribute of the Database Proxy

Download
Focus Mode
Font Size
Last updated: 2026-07-06 16:17:40
AI-Translated
After a read-only instance is created, you can purchase the database proxy, configure the connection address policy, and set the database proxy address in an application. In this way, the system automatically forwards write requests to the primary instance and read requests to read-only instances. This document describes how to enable read/write separation via the console.

Prerequisites

Operation Steps

1. Log in to the TencentDB for MySQL Console, select a region at the top, and then click the target instance ID to go to the instance management page.
2. On the instance management page, choose Database Proxy > Overview, locate the target access address under Connection Address, and click Adjust Configurations in its Operation column.

3. On the configuration adjustment page, select the read/write attributes for this access connection, complete the read weight allocation, and click OK.
Note:
The weight here is for read requests (non-transactional).
For a complete introduction to all settings in the configuration adjustment window, see Setting Database Proxy Connection Address.


Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback