Skip to content

How do I use MySQL Workbench to connect to my Amazon RDS for MySQL instance?

2 minute read
0

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:

  1. Open the Amazon RDS console.
  2. In the navigation pane, choose Databases, and then choose your DB instance.
  3. 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.
  4. 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

3 Comments

Can I connect using this method if I have disabled Public Access

replied 3 years ago

Thank you for your comment. We'll review and update the Knowledge Center article as needed.

AWS
MODERATOR

replied 3 years ago

This article was reviewed and updated on 2026-06-26.

EXPERT

replied 4 months ago