Help Center> GaussDB(for MySQL)> User Guide> Connection Management> Configuring and Changing a Private IP Address
Updated on 2024-05-21 GMT+08:00

Configuring and Changing a Private IP Address

Scenarios

You can plan and change private IP addresses after migrating on-premises databases or other cloud databases to GaussDB(for MySQL).

Constraints

After read/write splitting is enabled, the private IP address cannot be changed.

After a private IP address is changed, the domain name needs to be resolved again. This operation takes several minutes and may interrupt database connections. Therefore, you are advised to change a private IP address during off-peak hours.

Configuring the Private IP Address of a DB Instance

When you buy an instance, select a VPC and subnet on the Buy DB Instance page. Then, a private IP address will be automatically assigned to your instance. You can also enter a private IP address.

Procedure

You can change the private IP address of an existing instance.

  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, choose Databases > GaussDB(for MySQL).
  4. On the Instances page, click the instance name to go to the Basic Information page.
  5. In the Network Information area, click next to the Private IP Address field.
  6. In the displayed dialog box, enter a new private IP address and click OK.

    An in-use IP address cannot be used as the new private IP address of the instance.

  7. If you have enabled operation protection, click Start Verification in the displayed dialog box. On the displayed page, click Send Code, enter the obtained verification code, and click Verify to close the page.

    For details about how to enable operation protection, see Identity and Access Management User Guide.