Create a DB instance - Amazon Relational Database Service
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China.

Create a DB instance

Create an Amazon RDS for MySQL DB instance that maintains the data used by a web application.

To create a MySQL DB instance

  1. Sign in to the Amazon Web Services Management Console and open the Amazon RDS console at https://console.amazonaws.cn/rds/.

  2. In the upper-right corner of the Amazon Web Services Management Console, check the Amazon Web Services Region. It should be the same as the one where you created your EC2 instance.

  3. In the navigation pane, choose Databases.

  4. Choose Create database.

  5. On the Create database page, shown following, make sure that the Standard create option is chosen, and then choose MySQL.

    
                            Select engine
  6. In the Templates section, choose Free tier.

  7. In the Availability and durability section, keep the defaults.

  8. In the Settings section, set these values:

    • DB instance identifier – Type tutorial-db-instance.

    • Master username – Type tutorial_user.

    • Auto generate a password – Leave the option turned off.

    • Master password – Type a password.

    • Confirm password – Retype the password.

    
                        Settings sections
  9. In the Instance configuration section, set these values:

    • Burstable classes (includes t classes)

    • db.t3.micro

    
                                Instance configuration section
  10. In the Storage section, keep the defaults.

  11. In the Connectivity section, set these values and keep the other values as their defaults:

    • For Compute resource, choose Connect to an EC2 compute resource.

    • For EC2 instance, choose the EC2 instance you created previously, such as tutorial-ec2-instance-web-server.

    
                        Connectivity section
  12. In the Database authentication section, make sure Password authentication is selected.

  13. Open the Additional configuration section, and enter sample for Initial database name. Keep the default settings for the other options.

  14. To create your MySQL DB instance, choose Create database.

    Your new DB instance appears in the Databases list with the status Creating.

  15. Wait for the Status of your new DB instance to show as Available. Then choose the DB instance name to show its details.

  16. In the Connectivity & security section, view the Endpoint and Port of the DB instance.

    
                        DB instance details

    Note the endpoint and port for your DB instance. You use this information to connect your web server to your DB instance.

  17. Complete Install a web server on your EC2 instance.