1. Security Group Rules (Inbound / Outbound)
AWS RDS is hosted inside a Virtual Private Cloud (VPC), and by default, it is protected from public access. To connect to it from your local machine using MySQL Workbench, you need to configure Security Group rules that allow traffic on the MySQL port.
Inbound Rules allow incoming traffic to your RDS instance from specific IP addresses.
Outbound Rules allow responses from your RDS instance to go back to the requester (typically open by default).
| Type |
Protocol |
Port Range |
Source |
| MySQL/Aurora |
TCP |
3306 |
Your IP (e.g., 49.206.xx.xx/32) |
Note: Avoid using 0.0.0.0/0 unless necessary, as it opens your database to the entire internet (security risk).
2. RDS Database Creation Terms
When launching an RDS MySQL instance, AWS asks for a few critical configuration settings. These define how your DB behaves, how secure it is, and how it can be accessed.
DB Instance Identifier: A unique name that identifies your RDS instance.
Master Username & Password: Credentials that allow you to log in to the DB as an admin user.
DB Engine: The database technology – MySQL, PostgreSQL, Oracle, etc.
DB Instance Class: The virtual machine type for your DB (e.g., db.t3.micro – free tier eligible).
Storage: The amount of disk space allocated to your RDS instance.
VPC & Subnet Group: Defines the private network in which your RDS instance resides.
Public Access: Must be set to “Yes” to allow connection from your laptop or office network.
Availability Zone: AWS region and zone where the instance will be hosted.
Make sure you select "Publicly Accessible: Yes" if you want to connect from your MySQL Workbench.
3. MySQL Workbench Connection Setup
Once the RDS instance is ready and public access is allowed, you can use MySQL Workbench to connect. You’ll need the RDS endpoint, port, and credentials.
Hostname: This is the endpoint of your RDS DB (e.g., mydb.c5k2xa.us-east-1.rds.amazonaws.com).
Port: Default is 3306 for MySQL connections.
Username: Use the Master Username provided at creation.
Password: Enter the password when prompted or save it in Workbench.
SSL: Optional setting based on your organization's security policy.
Tip: Test the connection in MySQL Workbench before saving to ensure the DB is reachable.