Connecting to an Amazon RDS DB instance using a database client
Database clients provide a user-friendly way to connect to and manage your Amazon RDS DB instance. This section outlines the process of connecting to your DB instance using two popular database clients: MySQL Workbench and pgAdmin.
Althought the exact steps vary slightly depending on the tool and database engine, the general process involves configuring the connection with your endpoint, port, and credentials.
Topics
Connecting to a MySQL DB instance
MySQL Workbench
To connect to a MySQL DB instance
-
Open MySQL Workbench on your local machine.
-
Choose Database, Manage Connections from the menu.
-
Create a new connection and configure the following settings:
-
Hostname: Enter the endpoint retrieved from the AWS Management Console.
-
Port: Use the port number displayed in the Connectivity & security section (typically 3306).
-
Username: Enter the master username you set when you created the DB instance.
-
-
Choose Test Connection to verify the connection settings.
-
When the connection is successful, save the configuration and open the connection to access your database.
For comprehensive documentation, see Connecting to a DB instance running the MySQL database engine in the Amazon RDS User Guide.
Connecting to a PostgreSQL DB instance
pgAdmin
To connect to a PostgreSQL DB instance
-
Launch pgAdmin on your system.
-
Choose Add New Server.
-
In the General tab, enter a name for the connection. For example, "My RDS instance".
-
In the Connection tab, configure the following settings:
-
Host: Enter the endpoint from the AWS Management Console.
-
Port: Use the port number provided (typically 5432).
-
Username: Enter the master username for your DB instance.
-
Password: Provide the password you set during instance creation.
-
-
Save the configuration and connect in order to view and manage your database.
For comprehensive documentation, see Connecting to a DB instance running the PostgreSQL database engine in the Amazon RDS User Guide.
Connecting to other database engines
In addition to PostgreSQL and MySQL, Amazon RDS supports several other database engines. To connect to these databases, see the following documentation in the Amazon RDS User Guide.
-
Microsoft SQL Server: Connecting to your Microsoft SQL Server DB instance
-
IBM Db2: Connecting to your Db2 DB instance
Each database engine has specific requirements and configuration options. These topics provide instructions to help you establish a secure connection to your DB instance.
For a comprehensive overview of all supported database engines and their features, see
the Amazon RDS features
Next steps
At this stage, you have successfully created and connected to your RDS DB instance. From here, you can explore management strategies such as backing up, monitoring, optimizing, and scaling your DB instance.
Additionally, consider reviewing resources that provide practical guidance on advanced configurations, performance tuning, security enhancements, and cost management strategies.
Next steps: