Updated on 2026-04-24 GMT+08:00

Binding and Unbinding an EIP

Scenarios

You can bind an EIP to a DB instance for public accessibility, and you can unbind the EIP from the DB instance later if needed.

Precautions

  • To ensure that a DB instance is accessible, the security group associated with the instance must allow access to its database port. For example, if the database port is 8635, ensure that the security group allows access to the port 8635.
  • Public accessibility reduces the security of DB instances. Therefore, exercise caution when deciding to connect to your instance through a public network. To achieve a higher transmission rate and security level, you are advised to migrate your applications to an ECS that is in the same region as your RDS instance.

Prerequisites

  • You have applied for an EIP on the VPC console.
  • You can bind an EIP to a primary DB instance or a read replica only.
  • 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 in the upper left corner of the page and choose Database > Relational Database Service.
  4. On the Instances page, click the DB instance name to go to the Basic Information page.
  5. In the navigation pane on the left, choose Connectivity & Security. In the Connection Information area, click Bind next to the EIP field.

    Alternatively, in the Connection Topology area, click Public Connection and then Bind in the connection topology.

  6. In the displayed dialog box, all available unbound EIPs are listed. Select an EIP and click OK
  7. On the Connectivity & Security page, view the EIP that has been bound to the DB instance.

    You can also view the progress and result of binding an EIP to a DB instance on the Task Center page.

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

Unbinding 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 in the upper left corner of the page and choose Database > Relational Database Service.
  4. On the Instances page, click the DB instance that has an EIP bound to go to the Basic Information page.
  5. In the navigation pane on the left, choose Connectivity & Security. In the Connection Information area, click Unbind next to the EIP field. In the displayed dialog box, click OK.

    Alternatively, in the Connection Topology area, click Public Connection and then Unbind in the connection topology. In the displayed dialog box, click OK.

  6. On the Connectivity & Security page, check the result.

    You can also view the progress and result of unbinding an EIP from a DB instance on the Task Center page.

    To bind an EIP to the DB instance again, see Binding an EIP.