Updated on 2024-11-07 GMT+08:00

Creating a VPC and Security Group

This section describes how to create a VPC and security group for your MySQL server and GaussDB(for MySQL) instance.

Creating a VPC

  1. Log in to the management console.
  2. Click in the upper left corner of the management console and select AP-Singapore.
  3. Click in the upper left corner of the page and choose Networking > Virtual Private Cloud .

    The VPC console is displayed.

  4. On the displayed page, click Create VPC in the upper right corner.
  5. Configure required parameters.

  6. Click Create Now.
  7. Return to the VPC list and check whether the VPC is created.

    If the VPC status becomes available, the VPC has been created.

Creating a Security Group

  1. Log in to the management console.
  2. Click in the upper left corner of the management console and select AP-Singapore.
  3. Click in the upper left corner of the page and choose Networking > Virtual Private Cloud .

    The VPC console is displayed.

  4. In the navigation pane on the left, choose Access Control > Security Groups.
  5. Click Create Security Group in the upper right corner of the page.
  6. In the displayed dialog box, configure parameters as needed.
  7. Click OK.
  8. Return to the security group list, locate the security group sg-mysql, and click its name.
  9. Click the Inbound Rules tab, and then click Add Rule.
  10. Configure an inbound rule to allow access from database port 3306.

  11. Perform 9 to 10 to allow access from database port 22.

    After the rules were configured, the figure similar to the following is displayed.