How do I connect to my Amazon RDS for MySQL instance by using MySQL Workbench?
Last updated: 2022-09-20
I want to connect to my Amazon Relational Database Service (Amazon RDS) DB instance that's running MySQL. How can I use MySQL Workbench to do this?
Follow the steps below to connect MySQL Workbench to your Amazon RDS DB instance:
- Download and install MySQL Workbench.
- Open MySQL Workbench, and then choose the ⊕ sign beside MySQL Connections to set up a new connection.
- In the Setup New Connection dialog box, enter a name for your connection.
- In the Parameters section, enter these details:
- Host name: Enter the RDS endpoint
- Port: Enter the Port number
- Username: Enter the primary user
Note: You can get these details from the Amazon RDS console. From the Databases section, choose Instances, and then select the instance that you are connecting to. From the Connectivity and Security tab, choose Configuration. The primary user is listed here.
- Choose Test Connection.
- In the pop-up window that appears, enter the password that you configured when you created the DB instance, and then choose OK.
- After testing your connection, from the Setup new connection dialog box, choose OK to save the connection.
If you receive an error when you test the connection, check that you configured the network correctly.