• Relational Database Service

rds
  1. Help Center
  2. Relational Database Service
  3. User Guide
  4. Getting Started with MySQL
  5. Performing the Initial Configuration
  6. Binding and Unbinding an EIP

Binding and Unbinding an EIP

If your applications are running on an ECS that is in the same region as your RDS DB instance, you do not need to bind an EIP to the DB instance.

If your applications are running on an ECS that is not in the same region as your RDS DB instance or on a platform other than the public cloud, you need to bind an EIP to the DB instance.

NOTE:
  • ECSs and RDS can communicate with each other only if they are in the same region, even if they are in different AZs.
  • By default, a newly created DB instance is not bound with an EIP.
  • If your applications are running on an ECS that is not in the same region as RDS or on a platform other than the public cloud, you can access RDS DB instances through a virtual private network (VPN).

Background Information

You can use a floating IP address or an EIP to access DB instances.

  • Use a floating IP address alone when your applications are deployed on an ECS that is in the same region as RDS.

    RDS provides a floating IP address by default.

  • Use an EIP alone when:
    • Your applications are deployed on an ECS that is not in the same region as RDS.
    • Your applications are deployed on a platform other than the public cloud.

Precautions

  • Before accessing the database, you need to add specific IP addresses to the security group inbound rule. For details, see section Creating a Security Group.
  • Binding EIPs to DB instances reduces the security of DB instances. Therefore, exercise caution when performing this operation. To achieve a higher transmission rate and security level, you are advised to migrate your applications to the ECS that is in the same region as RDS.

Binding an EIP

  1. On the Instance Management page, click the target DB instance.
  2. On the EIPs page, click Bind EIP.
  3. In the displayed dialog box, all unbound EIPs are listed. Select the EIP to be bound and click OK. If no available EIPs are displayed, click View EIP and assign an EIP on the VPC console.
  4. On the Basic Information page, you can 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.
  2. On the EIPs page, click Unbind.
  3. Click Yes.

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