Aws RDS - 20
Aws RDS - 20
Aws RDS in short for amazon relational database services. It makes it easier to setup, operate and scale
relational database in the AWS cloud. Some its important features include Dashboard, Databases, Query
editor, performance, insight, and snapshots among others. If you have a relational database to manage rds
does that for you. You can connect your database to any of the seven engines that are provided by aws
which include postgresql, mysql, mariadb, oracle and many others. The main features f amazon RDs are
Scalability
Performance
Advanced Security
Cost-effectiveness
Manageability
Availability
Durability
For a relational database in an on-premises server, you assume full responsibility for the server, OS and
software. For a database on an amazon ec2 instance, AWS manages the layer below the operating system.
In this way, Amazon ec2 eliminates some of the burden of managing an on-premises database service.
See ssrds1
Amazon rds is a managed database service. It is responsible for the most management tasks. By
eliminating tedious manual tasks, Amazon RDS frees you to focus on your application and your users.
Amazon themselves suggest customers use RDS over EC2 for relational databases.
See ssrds2
RDS Concepts
DB instances
A DB is an isolated database environment in the AWS cloud. The basic building block of amazon RDS is
the DB instance.
DB Engines
A DB engine is the specific relational database software that runs on your instance. Amazon RDS
currently supports the flowing engines.
MYSQL
MariaDB
postgreSQL
Oracle
Microsoft SQL Server
DB instances classes
A DB instances class determines the computation and memory capacity of a DB instance. A DB instance
class consists of both instance type and size. Each instance type offers different compute, memory and
storage capabilities.
DB instance storage
Amazon EBS provide durable, block-lever storage volumes that you can attach to a running instance. DB
instance storage comes in the following types:
LAB
Login to aws account first to create security group with allowing SSH,HTTP,HTTPS,MYSQL/Aurora
go to services databases RDS create database select standard create select mysql select
free tier in settings give a name in credentials settigs give a user name(default is admin go with
that) set password select burstable class (go with default) storage as default connectivity
(select public access “yes” select security group then click on create database
After creating copy the endpoint create an ec2 instance with the same security group of database
open putty and connect it install sql (yum install mysql*) or mariadb (yum install mariadb) start the
services systemctl restart mysqld.service systemctl start mariadb(in mariadb) start the service
permanently ( systemctl enable mysqld.service) then connect it mysql -h < endpoint> -P 3306 -u
admin –p enter password type (SHOW Databases;) after connect terminate the ec2 and delete
rds