This tutorial describes how to create a RDS instance, a VPC, a VSwitch, and a security group before accessing the RDS instance in the VPC. Skip this tutorial if you have already created these resources.
Note: Create the VPC, security group, and RDS instance in the same region. For more information, see Regions and zones.
Note: Set the Network Type of the security group to VPC, and then select the VPC that you previously created.
Go to the ApsaraDB for RDS console, and click Create Instance.
- In the Basic Configuration field, specify the parameters as needed. Use the default parameters if you do not require custom parameters.
- In the Network field, set the Network Type to VPC, and select the VPC and VSwitch you previously created.
- Specify the Storage and Purchase Plan that you require, and click Buy Now to create the RDS instance.
After the RDS instance is created, see RDS topics Set whitelist to set the IP whitelist for the RDS instance.
Specifically, you can set the High Security White List Mode option to 0.0.0.0/0, which indicates that your RDS allows access request from any device in your VPC. Be reassured that your RDS instances are safe in VPC and have no security vulnerabilities.
Connect to your RDS instance.
Take MySQL 5.7 as an example, click the RDS instance ID and enter the instance detail page:
In the left-side navigation pane, click Databases > Create Database, set the Database Name and Supported Character Set, and click OK to create database and account.
In the left-side navigation pane, click Accounts > Create Account, set your Password, and click OK to create an account.
Click the Log on to DB and use the account you created. In the Basic Information area, you can find the Internet and intranet addresses and port numbers. Complete the permission authorization if necessary.
After you log on to the DMS, select one database and you can create tables and insert data.
Depending on the DB engine and version of RDS instance, creating databases and connecting to instances vary. For more information, see RDS topics: