I want to use MySQL Workbench to connect to my Amazon Relational Database Service (Amazon RDS) for MySQL DB instance.
Short description
To connect MySQL Workbench to your Amazon RDS for MySQL DB instance, you need the DB instance endpoint, port number, and primary username. You must also confirm that the DB instance is publicly accessible, and that the security group's inbound rules allow connections from your IP address.
Resolution
Confirm network access to your DB instance
Complete the following steps:
- Open the Amazon RDS console.
- In the navigation pane, choose Databases, and then choose your DB instance.
- On the Connectivity & security tab, confirm that Publicly accessible is set to Yes. If the DB instance isn't publicly accessible, then you can't connect directly from outside the VPC.
- Under Security, choose the linked security group. Confirm that an inbound rule allows traffic on the database port from your IP address.
Connect MySQL Workbench to your DB instance
For instructions on how to connect MySQL Workbench to your DB instance, see Connecting from MySQL Workbench.
You need the following connection details from the Amazon RDS console:
- For Hostname, use the Endpoint value from the Connectivity & security tab.
- For Port, use the Port value from the Connectivity & security tab.
- For Username, use a database user with minimal permissions instead of the Master username value from the Configuration tab.
If you receive an error when you test the connection, then confirm that the DB instance is publicly accessible. Also, verify that the security group and network ACLs allow inbound traffic on the database port from your IP address.
Related information
How do I connect to an Amazon RDS DB instance that uses a public or private subnet of an Amazon VPC?
Scenarios for accessing a DB instance in a VPC
Controlling access with security groups