tencent cloud

Database Management Center

Managing Data Sources

PDF
Focus Mode
Font Size
Last updated: 2026-04-16 15:40:59
When advanced development of the database is required, such as enterprise collaboration, secure release, and federated query, you should first add the database to the data source and enable security control capabilities for unified management.
Data source management also supports modifying data source execution accounts, deleting data sources, and downloading the data source list.

Use Limits

For the same instance, the restriction relationships among the data source page, the controlled instance page, the quick login page, and the SQL window page are described as follows:
Control is not enabled for the data source.
Adding a database on the Basic Development > Quick Log-in page is supported, and all operations on the Quick Login page are supported.
Logging in to an instance via password on the Basic Development > SQL Window page is supported.
Control is enabled for the data source.
Adding a database on the Basic Development > Quick Log-in page is not supported. If quick login is added first before enabling control for the data source, the instance status on the Quick Log-in page will be Disable, and only deletion operation is supported.
Logging in to an instance via password on the Basic Development > SQL Window page is supported.
To log in to the SQL window, you can navigate to the Secure Release > Instance Control > Control Instances page, and click Log In in the Operation column of the instance list.

Prerequisites

The source database instance has been created.
The region, name, port, high-permission database account, and password of the source database instance have been obtained. For information on how to set high permissions for the account, see Setting High Permissions for Database Instance Accounts.

Creating a Data Source

Notes:
Only one data source is allowed to be added per instance.
1. Log in to the DMC console.
2. In the left sidebar, select Advanced Development > Data Source.
3. Click Create Data Source at the top of the page.
4. On the Create Data Source page, configure the parameters as prompted on the page. The parameter descriptions are shown in the table below.
Instance Source: Tencent Cloud Database
Instance Source: CVM Self-Built Instance
Instance Source: Public Network Self-Built Instance



The parameter description is shown in the following table.
Classification
Parameter
Description
Tencent CloudDB
CVM-Built Instance
Instance Built on Public Network
Data Source Type
Instance Source
Tencent CloudDB: The source database is a Tencent Cloud database instance.
CVM-Built Instance: The source database is a self-built database on a CVM.
Instance Built on Public Network: The source database is a self-built database on a local server or a third-party cloud vendor’s database.
Database Type
Currently, only MySQL and TDSQL-C Transaction Cluster database types are supported.
Marker
Select a marker for the data source.
Basic Information
Region
Select the region where the source instance is located.
Instance Selection
Select the source instance name.
x
x
Access Address
Choose the access address for the instance. This step is only relevant for MySQL database types.
x
x
CVM Instance
Select the CVM instance name.
x
x
Endpoint
Enter the IP address and port number of the instance.
Ensure that you have added the DMC IP allowlist; otherwise, the connectivity test may fail.
Example value: 192.168.*.138:3006.
x
x
Data Source Name
It is customizable and uniquely identifies a data source.
Naming specification: Only numbers, uppercase and lowercase English letters, Chinese characters, and special characters such as _, -, ., /, (), and [] are supported, with a length less than 60.
Example value: test
Port
Enter the port number for accessing the CVM instance.
Example value: 3016
x
x
Execution Account
Enter the high-level permission account of the database instance for the execution of advanced database features. If a low-level permission account is used, the system will prompt a detection failure when checking account permissions and connection status.
For information on how to set high-level permissions for an account, see Setting High Privileges for Database Instance Accounts.
Example value: root
Execution Account Password
The password corresponding to the execution account.
Example value: azj***24!
Account Status
After entering the above parameters, click Check Account Permissions and Connection Status. You may proceed to the next step once the check shows Passed.
After making any necessary modification, click Check Account Permissions and Connection Status again until it shows Passed, then proceed to the next step.
Tag
Tags associated with the instance.
x
Remarks
Enter the description information related to the data source.
5. After you complete the configuration, click Create Data Source.
The created data source will be displayed in the data source list.

Viewing the Data Source List

1. Log in to the DMC console.
2. In the left sidebar, select Advanced Development > Data Source.
3. View the data source list. The parameters in the list are described in the table below.

Parameter
Description
Data Source ID/Name
The ID and name of the data source.
Database Type
Currently, only MySQL and TDSQL-C Transaction Cluster database types are supported.
Marker
The Marker of the data source.
Instance Source
Tencent Cloud database: The source database is a Tencent Cloud database instance.
CVM self-built instance: The source database is a self-built database on a CVM.
Public network self-built instance: The source database is a self-built database on a local server or a third-party cloud vendor’s database.
Execution Account
The execution account of the source database.
Endpoint
The IP address and port number of the source instance.
Region
The region to which the instance belongs
Source Instance ID
The ID of the source instance.
Tag
The tag bound to the instance.
Remarks
Enter the description information related to the data source.
Status
Data source status, including Normal, Exception, and Deleting.
Operation
Enable control for the source instance: Click Activate Control. For detailed operations, see Control is enabled for the data source.
Modify the Execute Account of the Source Instance: Click More > Modify Execute Account. For detailed operations, see Modifying the Execution Account of the Data Source.
Modify the tag of the data source: Click More > Modify Markers. After modifying the tag, click OK.
Delete the data source: Click More > Delete. For detailed operations, see Deleting the Data Source.

Control is enabled for the data source

1. Log in to the DMC console.
2. In the left sidebar, select Advanced Development > Data Source.
3. In the Operation column corresponding to the data source to be enabled, click Activate Control. In the pop-up dialog box, select a rule template and click Activate Now.
For the rule template description and operations, see Rule Template.
Notes:
After an instance is bound to a rule template, subsequent SQL window operations, SQL change operations, and ticket approvals for that instance will be governed by the rule template.
After control is enabled, the page will redirect to the Manage Instance page, and the data source will be automatically added to the controlled instance list.
The Manage Instance page also supports enabling control for instances that have been added to the data source but have not yet had control enabled. For detailed operations, see Activating Control for Instances.

Modifying the Execution Account of the Data Source

1. Log in to the DMC console.
2. In the left sidebar, select Advanced Development > Data Source.
3. In the Operation column corresponding to the data source to be modified, click More > Modify Execute Account.
4. In the pop-up dialog box, modify the execution account and the execution account password, click Test Connectivity, and after the test passes, click OK.


Deleting the Data Source

If there are open tickets, deletion is not supported.
1. Log in to the DMC console.
2. In the left sidebar, select Advanced Development > Data Source.
3. In the Operation column corresponding to the data source to be modified, click More > Delete.
4. In the pop-up dialog box, confirm the data source information and click OK.


Related Documentation

Refresh the data source list data: Click

in the upper-right corner of the list.
Download the data source list: Click

in the upper-right corner of the list to export a file in .csv format.

Help and Support

Was this page helpful?

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

Feedback