Set database proxy endpoints

更新时间:
复制 MD 格式

The MyBase MySQL database proxy provides one default proxy endpoint with the proxy endpoint feature attached. You can also add, modify, or delete proxy endpoints.

Prerequisites

The database proxy is enabled. For more information, see Enable and configure the database proxy service.

Proxy endpoint types

There are three types of proxy endpoints: Private Endpoint (VPC), Private Endpoint (Classic Network), and Public Endpoint.

When you enable the database proxy, you can select a default proxy endpoint type. After the default proxy endpoint is created, you can add new proxy endpoints. Supported endpoint types vary by instance type.

Instance type

Default proxy endpoint type

Additional proxy endpoint types

Enterprise SSD (VPC)

Private Endpoint (VPC)

Public Endpoint

Local SSD (VPC)

Private Endpoint (VPC)

Public Endpoint

Private Endpoint (VPC)

Private Endpoint (Classic Network)

Public Endpoint

Note

For a single instance, you cannot have multiple proxy endpoints with the same Network Address Type. For example, you cannot have multiple proxy endpoints of the Private Endpoint (VPC) type.

Procedure

  1. Log on to the ApsaraDB for MyBase console.

  2. In the upper-left corner of the page, select the destination region.

  3. In the navigation pane on the left, click Instance List > MySQL.

  4. Find the primary instance that you want to manage and click Details in the Actions column.

  5. In the navigation pane on the left, click Database Proxy.

    • Add a proxy endpoint

      1. In the Connection Information section, click Add Proxy Endpoint.

      2. In the dialog box that appears, select a proxy endpoint type, and set the prefix, port, and network type for the new endpoint.

      3. Click OK.

    • Modify a proxy endpoint or port

      1. Find the proxy endpoint that you want to modify and click Modify on the right.

      2. Change the prefix and port of the endpoint, and then click OK.

    • Delete a proxy endpoint

      1. Find the proxy endpoint that you want to delete and click Delete on the right.

      2. In the confirmation dialog box that appears, click OK.

      Note

      You can delete only endpoints that you added.

Related API operations

API

Description

DescribeDBProxy

Queries the details of a database proxy.

CreateDBProxyEndpointAddress

Creates a proxy endpoint for a database proxy.

ModifyDBProxyEndpointAddress

Modifies a proxy endpoint of a database proxy.

DeleteDBProxyEndpointAddress

Deletes a proxy endpoint of a database proxy.