AWS -Relational Database Service(RDS)

kannanbaskaran

Kannan

Posted on December 14, 2023

AWS -Relational Database Service(RDS)
  • Amazon Relational Database Service (Amazon RDS) is a collection of managed services that makes it simple to set up, operate, and scale databases in the cloud. Choose from eight popular engines: Amazon Aurora PostgreSQL-Compatible Edition, Amazon Aurora MySQL-Compatible Edition, RDS for PostgreSQL, RDS for MySQL, RDS for MariaDB, RDS for SQL Server, RDS for Oracle, and RDS for Db2. Deploy on premises with Amazon RDS on AWS Outposts or with elevated access to the underlying operating system and database environment using Amazon RDS Custom.

  • Now we are going to create Mysql DB using RDS.we need to confirm the ports allowed in the Security groups of your AWS.

Image description

Image descriptiony

Image description

Image description

  • install mysql-client on the local machine
sudo apt install mysql-client -y

Enter fullscreen mode Exit fullscreen mode

Once DB is on available state select >modify >connectivity >public accessibility.

Image description

  • we can access the DB via terminal with the endpoint id,port username and password
mysql -h demomysqldb.cg35jaodi4xh.ap-south-1.rds.amazonaws.com -P 3306 -u admin -p
Enter fullscreen mode Exit fullscreen mode
kannan@kannan-PC:~$ mysql -h demomysqldb.cg35jaodi4xh.ap-south-1.rds.amazonaws.com -P 3306 -u admin -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 27
Server version: 8.0.33 Source distribution

Copyright (c) 2000, 2023, Oracle and/or its affiliates.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| performance_schema |
| sys                |
+--------------------+
4 rows in set (0.02 sec)


Enter fullscreen mode Exit fullscreen mode
  • we can create a PostgreSQL DB with the "Easy create" method
sudo apt install postgresql-client
Enter fullscreen mode Exit fullscreen mode
  • Lets see the another method to create a DB with "Standard create"

Image description

Image description

Image description

Image description

Image description

Image description

Image description

Image description

  • install postgresql-client on the local machine
sudo apt install postgresql-client -y
Enter fullscreen mode Exit fullscreen mode
  • we can access the DB via terminal with the endpoint id,port username and password
psql --host=database-1.cg35jaodi4xh.ap-south-1.rds.amazonaws.com --port=5432 --username=postgres --dbname=demodb --password
Enter fullscreen mode Exit fullscreen mode

Image description

๐Ÿ’– ๐Ÿ’ช ๐Ÿ™… ๐Ÿšฉ
kannanbaskaran
Kannan

Posted on December 14, 2023

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

ยฉ TheLazy.dev

About