Lab 6
Lab 6
– 6
Date of Performance:
Date of Submission:
Program Execution/
formation/ Timely
Viva Experiment
correction/ Submission Sign with Date
(03) Total (10)
ethical practices (01)
(06)
Experiment No. 6
Implement Database as a Service on SQL/NOSQL databases like AWS RDS
6.2 Course Outcome: Implement various cloud computing service models and implement them to
solve the given Problems.
6.3 Learning Objectives: To Create a MySQL DB instance using Amazon Relational Database
Service (Amazon RDS)
Amazon RDS provides the following specific advantages over database deployments that aren't fully
managed:
● You can use the database products you are already familiar with: Db2, MariaDB, Microsoft SQL
Server, MySQL, Oracle, and PostgreSQL.
● Amazon RDS manages backups, software patching, automatic failure detection, and recovery.
● You can turn on automated backups, or manually create your own backup snapshots. You can use
these backups to restore a database. The Amazon RDS restore process works reliably and
efficiently.
6.6 Procedure:
You can use any standard SQL client application to connect to the DB instance. In this example, you
connect to a MySQL DB instance using the mysql command-line client.
❖ Find the endpoint (DNS name) and port number for your DB instance.
❖ Sign in to the AWS Management Console and open the Amazon RDS console at
https://console.aws.amazon.com/rds/.
❖ Get the latest bug fixes and security updates by updating the software on your EC2 instance. To do
this, use the following command.
sudo dnf update -y
❖ To install the mysql command-line client from MariaDB on Amazon Linux 2023, run the following
command:
sudo dnf install mariadb105
❖ Connect to the MySQL DB instance. For example, enter the following command. This action lets
you connect to the MySQL DB instance using the MySQL client.
❖ Substitute the DB instance endpoint (DNS name) for endpoint, and substitute the master username
that you used for admin. Provide the master password that you used when prompted for a password.
mysql -h endpoint -P 3306 -u admin -p
❖ Run SQL commands.
For example, the following SQL command shows the current date and time:
SELECT CURRENT_TIMESTAMP;