04. Create MySQL Database using Amazon RDS
Learn how to create, manage, snapshot, and delete a MySQL RDS instance using the Standard Create option in the AWS Management Console.
πͺ 1. Navigate to RDSβ
- Sign in to the AWS Management Console.
- Open the Amazon RDS service.
- In the left panel, select Databases.
- Click Create database.
βοΈ 2. Choose Creation Methodβ
| Option | Description |
|---|
| Easy Create | Automatically uses recommended settings. |
| Standard Create | Allows full customization. |
π Select Standard Create.
π§© 3. Choose Database Engineβ
| Option | Selection |
|---|
| Engine type | MySQL |
| Edition | MySQL Community |
| Version | 8.0.23 (recommended) |
π§± 4. Choose a Templateβ
Select Free Tier to use the AWS Free Tier benefits.
This automatically configures low-cost defaults.
πͺͺ 5. Settingsβ
| Setting | Value |
|---|
| DB identifier | database-1 |
| Master username | admin |
| Master password | Random1234 (enter twice) |
π» 6. DB Instance Configurationβ
| Setting | Value |
|---|
| DB instance class | db.t2.micro |
| Storage type | gp2 (SSD) |
| Allocated storage | 20 GB |
| Storage autoscaling | β
Enabled (max 1000 GB) |
π 7. Connectivityβ
| Option | Setting |
|---|
| Virtual Private Cloud (VPC) | Default or custom |
| Public access | Yes (to connect from your local machine) |
| VPC security group | Create new β demo-database-rds |
| Availability Zone | No preference |
| Database port | 3306 |
π 8. Authenticationβ
| Option | Setting |
|---|
| Authentication method | Password authentication |
Leave additional configuration options as default.
π 9. Create the Databaseβ
- Review your settings.
- Click Create database.
- Wait for the status to change from Creating β Available.
π 10. View and Monitorβ
Once available:
- Check Connectivity & Security for the Endpoint and Port.
- View Monitoring to see CPU utilization, storage, and connections.
- Explore Logs & Events, Configuration, and Backups tabs.
πΈ 11. Create a Snapshotβ
- Select your database.
- Choose Actions β Take Snapshot.
- Enter name:
demo-snapshot.
- Wait until the snapshot status is Available.
β»οΈ 12. Restore or Copy Snapshotβ
| Action | Purpose |
|---|
| Restore Snapshot | Create a new database from a snapshot. |
| Copy Snapshot | Duplicate it to another region (Disaster Recovery). |
| Share Snapshot | Share with another AWS account. |
π§Ή 13. Clean Upβ
- Delete snapshot
- Select it β Actions β Delete Snapshot.
- Delete database
- Select DB β Actions β Delete.
- Disable βCreate final snapshot.β
- Disable βRetain automated backups.β
- Type
delete me β Confirm.
β
Resultβ
You have:
- Created a MySQL RDS instance
- Taken and managed database snapshots
- Learned to monitor, restore, copy, and delete RDS resources