AWS - Relational Database Service

Amazon RDS (Relational Database Service) is a fully-managed SQL database cloud service that allows to create and operate relational databases. Using RDS you can access your files and database anywhere in a cost-effective and highly scalable way.

Features of Amazon RDS

Amazon RDS has the following features −

How to Set Up Amazon RDS?

Step 1 − Login to AWS management console. Use the following link to open Amazon RDS console − https://console.aws.amazon.com/rds/

Step 2 − Select the region where the DB instance is to be created, at the top right corner of the Amazon RDS console.

Step 3 − Select Instances in the navigation pane, then click Launch DB Instance button.

Step 4 − The Launch DB Instance Wizard opens. Select the type of instance as required to launch and click the Select button.

Engine Selection

Step 5 − On the Specify DB Details page, provide the required details and click the Continue button.

Continue

Step 6 − On the Additional configuration page, provide the additional information required to launch the MySQL DB instance and click the Continue button.

DB Security Group

Step 7 − On Management options page, make the choices and click the Continue button.

Launch DB Instance Wizard

Step 8 − On the Review page, verify the details and click the Launch DB Instance button.

Launch DB Instance

Now DB instance shows in the list of DB instances.

How to Connect Database to MySQL DB Instance?

Following are the steps to connect a database on MySQL DB instance −

Step 1 − Type the following command in the command prompt on a client computer to connect a database on MySQL DB instance (using the MySQL monitor).

Step 2 − Replace <myDBI> with DNS name of your DB instance, <myusername> with your master user-name & <mypassword> with your master password.

PROMPT> mysql -h <myDBI> -P 3306 -u <myusername> -p

After running the above command, the output looks like −

Welcome to the MySQL monitor.  Commands end with ; or \g. 
Your MySQL connection id is 350 
Server version: 5.2.33-log MySQL Community Server (GPL)
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.  
mysql>

How to Delete a DB Instance?

After completing the task, we should delete the DB instance so will not be charged for it. Follow these steps to delete a DB instance −

Step 1 − Sign in to the AWS Management Console and use the following link to open the Amazon RDS console.

https://console.aws.amazon.com/rds/

Step 2 − In the DB Instances list, select the DB instances to be deleted.

Step 3 − Click the Instance Actions button and then select the Delete option from the dropdown menu.

Step 4 − Select No in the Create Final Snapshot.

Step 5 − Click the Yes, Delete to delete the DB instance.

Cost of Amazon RDS

When using Amazon RDS, pay only for only the usage without any minimum and setup charges. Billing is based on the following criteria −

For latest updated price structure and other details, visit the following link − https://aws.amazon.com/rds/pricing/


Revision #1
Created 16 December 2022 10:59:25 by Admin
Updated 16 December 2022 11:00:01 by Admin