tencent cloud

Feedback

Overview

Last updated: 2023-12-27 16:28:05
    This section provides an overview of the methods for connecting to MySQL instances, application scenarios, and FAQs.

    Connection Methods

    Connection Methods
    Application Scenarios
    Billing
    The CVM and TencentDB for MySQL instances are in the same VPC in the same region under the same Tencent Cloud root account. For details, please refer to Scenario 1.
    No charge currently
    In scenarios where private network connections are unavailable, you can use public network connections. For details, please see Scenario 2.
    Note:
    Public network connections can be influenced by network performance. If you have higher network requirements, we recommend using Private Network Connection or CCN Connection.
    
    
    No charge currently
    This connection method applies when the CVM and MySQL are under different VPCs or if the Lighthouse is used for establishing the connection with MySQL. For details, please refer to Scenario 3.

    Application Scenario Description

    Scenario 1: Private Network Connection

    The CVM and MySQL belong to the same Tencent Cloud root account, located in the same region and both are VPC network types under the same VPC.
    Example:
    Under account 1, a CVM instance is under subnet A of VPC1 in the Guangzhou region and a MySQL instance is under subnet B of VPC1 in the same region under the same account.

    Scenario 2: Public Network Connection

    In scenarios where a private network connection is not possible, public network connection can be used. It requires that MySQL has already enabled public access.
    Example:
    Under Account 1, a CVM instance resides under subnet A of VPC1 in the Guangzhou region and a MySQL with public access enabled resides in the same region.
    Under Account 1, a CVM instance resides under subnet A of VPC1 in the Guangzhou region and a MySQL with public access enabled resides in the Beijing region.
    Under Account 1, a CVM instance resides under subnet A of VPC1 in the Guangzhou region, and under Account 2, a MySQL with public access enabled resides in the Beijing region.

    Scenario 3: CCN Connection

    1. The CVM and MySQL instances are in different VPCs (this includes both same/different accounts and same/different regions).
    2. Under the same Tencent Cloud account, if the purchased server is a Lighthouse instance, to connect to the CDB instance, CCN connection is required.
    Example:
    Under Account 1, the CVM instance resides under subnet A of VPC1 in the Guangzhou region, and the MySQL instance is under subnet B of VPC2 in the Guangzhou region.
    Under Account 1, the CVM instance resides under subnet A of VPC1 in the Guangzhou region and the CDB instance is under subnet B of VPC2 in the Beijing region.
    Under Account 1, the CVM instance is under Subnet A of VPC1 in the Guangzhou region, and under Account 2, the MySQL instance is under Subnet B of VPC2 in the Beijing region.
    Under Account 1, the Lighthouse instance is under Subnet A of VPC1 in Guangzhou, and the MySQL instance is under Subnet B of VPC2, also in Guangzhou.

    FAQs on Connection

    For a comprehensive overview of common issues and recommended processing regarding different methods of connecting to CDB instances, please refer to FAQs on Connection.
    
    
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support