doc-exports/docs/gaussdb_mysql/umn/gaussdb_03_0011.html
Ru, Li Yi f3715d9cc9 gaussdbmysql
Reviewed-by: Wagner, Fabian <fabian.wagner@t-systems.com>
Co-authored-by: Ru, Li Yi <liyiru7@huawei.com>
Co-committed-by: Ru, Li Yi <liyiru7@huawei.com>
2024-09-06 12:45:25 +00:00

6.3 KiB

Binding and Unbinding an EIP

Scenarios

By default, a GaussDB(for MySQL) DB instance is not publicly accessible (not bound with an EIP) after being created. You can bind an EIP to the DB instance for public accessibility and can unbind the EIP from the DB instance as required.

To ensure that the database can be accessed, the security group used by the database must have the permission to access the database port. For example, if the database port is 3306, ensure that the security group has the permission to access port 3306.

Prerequisites

  • You have assigned an EIP on the VPC console.
  • If a DB instance has already been bound with an EIP, you must unbind the EIP from the DB instance first before binding a new EIP to it.

Binding an EIP

  1. Log in to the management console.
  2. Click in the upper left corner and select a region and a project.
  3. Click Service List. Under Databases, click GaussDB(for MySQL).
  4. On the Instances page, click the target DB instance. The Basic Information page is displayed.
  5. In the Network Information area, click Bind in the Public IP Address (EIP) field.
  6. In the displayed dialog box, select an EIP and click OK.

    If no available EIPs are displayed, click View EIP and obtain an EIP.

    You need to configure security group rules and enable specific IP addresses and ports to access the target DB instance.

  7. On the EIPs page, view the EIP that has been bound to the DB instance.

    To unbind the EIP from the DB instance, see Unbinding an EIP.

Unbinding an EIP

  1. On the Instance Management page, click the DB instance that has been bound with an EIP. The Basic Information page is displayed.
  2. In the Network Information area, click Unbind in the Public IP Address (EIP) field.
  3. In the displayed dialog box, click Yes.
  4. To bind an EIP to the DB instance again, see Binding an EIP.