Scenarios
This section describes how to create a DB instance on the management console and bind an EIP to the DB instance to make the instance publicly accessible.
If you are using GaussDB(for MySQL) for the first time, see Constraints.
Process
Figure 1 illustrates the process of connecting to a DB instance over a public network.
Figure 1 Connecting to a DB instance over a public network
- Step 1: Create a DB instance. Confirm the specifications, storage, network, and database account configurations of the DB instance based on service requirements.
- Step 2: Bind an EIP. The Elastic IP service provides independent public IP addresses and bandwidth for public access. You can apply for an EIP on the VPC console and bind the EIP to the DB instance.
- Step 3: Configure security group rules. To access a DB instance from resources outside the security group, you need to configure an inbound rule for the security group associated with the DB instance.
- Step 4: Connect to a DB instance over a public network. You can connect to a DB instance through a common connection, or an SSL connection for enhanced security. SSL connections are encrypted.