• 沒有找到結果。

Create an Aurora MySQL DB cluster

在文檔中 Amazon Aurora (頁 103-108)

• Connect to an instance in a DB cluster (p. 94)

• Delete the sample DB cluster, DB subnet group, and VPC (p. 96)

Create an Aurora MySQL DB cluster

Before you create a DB cluster, you must first have a virtual private cloud (VPC) based on the Amazon VPC service and an Amazon RDS DB subnet group. Your VPC must have at least one subnet in each of at least two Availability Zones. You can use the default VPC for your AWS account, or you can create your own VPC. The Amazon RDS console is designed to make it easy for you to create your own VPC for use with Amazon Aurora or use an existing VPC with your Aurora DB cluster.

In some cases, you might want to create a VPC and DB subnet group for use with your Aurora DB cluster yourself, rather than having Amazon RDS create them. If so, follow the instructions in How to create a

Create an Aurora MySQL DB cluster

VPC for use with Amazon Aurora (p. 1804). Otherwise, follow the instructions in this topic to create your DB cluster and have Amazon RDS create a VPC and DB subnet group for you.

You can use Easy create to create an Aurora MySQL-Compatible Edition DB cluster with the RDS console.

With Easy create, you specify only the DB engine type, DB instance size, and DB instance identifier. Easy create uses the default settings for the other configuration options. When you use Standard create instead of Easy create, you specify more configuration options when you create a database, including ones for availability, security, backups, and maintenance.

In this tutorial, you use Easy create to create an Aurora MySQL-Compatible Edition DB cluster.

NoteFor information about creating DB clusters with Standard create, see Creating an Amazon Aurora DB cluster (p. 125).

To create an Aurora MySQL DB cluster with Easy create enabled

1. Sign in to the AWS Management Console and open the Amazon RDS console at https://

console.aws.amazon.com/rds/.

2. In the upper-right corner of the Amazon RDS console, choose the AWS Region in which you want to create the DB cluster.

Aurora is not available in all AWS Regions. For a list of AWS Regions where Aurora is available, see Region availability (p. 12).

3. In the navigation pane, choose Databases.

4. Choose Create database and make sure that Easy Create is chosen.

5. For Engine type, choose Amazon Aurora.

6. For Edition, choose Amazon Aurora with MySQL compatibility.

7. For DB instance size, choose Dev/Test.

8. For DB cluster identifier, enter a name for the DB cluster, or leave the default name.

9. For Master username, enter a name for the user, or leave the default name.

The Create database page should look similar to the following image.

Create an Aurora MySQL DB cluster

10. To use an automatically generated password for the DB cluster, make sure that the Auto generate a password box is selected.

To enter your password, clear the Auto generate a password box, and then enter the same password in Master password and Confirm password.

Create an Aurora MySQL DB cluster

11. (Optional) Open View default settings for Easy create.

You can examine the default settings used with Easy create. The Editable after database is created column shows which options you can change after database creation.

• To change settings with No in that column, use Standard create.

• To change settings with Yes in that column, either use Standard create, or modify the DB cluster after it is created to change the settings.

The following are important considerations for changing the default settings:

Create an Aurora MySQL DB cluster

• If you want the DB cluster to use a specific VPC, subnet group, and security group, use Standard create to specify these resources. You might have created these resources when you were setting up for Amazon RDS. For more information, see Setting up your environment for Amazon Aurora (p. 84).

• If you want to be able to access the DB cluster from a client outside of its VPC, use Standard create to set Public access to Yes.

If the DB cluster should be private, leave Public access set to No.

12. Choose Create database.

If you chose to use an automatically generated password, the View credential details button appears on the Databases page.

To view the user name and password for the DB cluster, choose View credential details.

To connect to the DB cluster as the master user, use the user name and password that appear.

Important

You can't view the master user password again. If you don't record it, you might have to change it.

If you need to change the master user password after the DB cluster is available, you can modify the DB cluster to do so. For more information about modifying a DB cluster, see Modifying an Amazon Aurora DB cluster (p. 375).

13. For Databases, choose the name of the new Aurora MySQL DB cluster.

On the RDS console, the details for new DB cluster appear. The DB cluster and its DB instance have a status of Creating until the DB cluster is ready to use. When the state changes to Available for both, you can connect to the DB cluster. Depending on the DB instance class and the amount of storage, it can take up to 20 minutes before the new DB cluster is available.

在文檔中 Amazon Aurora (頁 103-108)