Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Operations with Database Instance | RDS Management
Introduction to Cloud Computing
course content

Course Content

Introduction to Cloud Computing

Introduction to Cloud Computing

1. Introduction to Cloud Technologies
2. AWS S3 Overview
3. EC2 Overview
4. RDS Management

bookOperations with Database Instance

This will be a short chapter where I'll show you that even the simplest SQL commands work perfectly fine with a cloud database. Let's, for example, create two tables that will store user phone numbers and a table that will store descriptions of various products.

To do this, open our MySQL Workbench, connect to our cloud database, and create a database for our tutorial:

Now, use the following SQL queries to create the necessary tables.

Note

Generally, you can create any table you like; it doesn't matter. In our case, we'll be creating two tables as described above. Also, don't forget to use the USE databaseName command.

To create the user_phones table:

To create the product_descriptions table:

Also, let's insert some random data into these tables so they are not empty.

user_phones:

product_descriptions:

Thus, we've created a database and two tables in our cloud database. Now, anyone can connect to this database and retrieve the necessary data, or insert new data, and so on.

Let's check if everything is done correctly and retrieve all the information from the user_phones and product_descriptions tables:

And the second one:

In this chapter, we created the necessary database and also created and populated two tables in this database. We did this in order to connect to these databases from our EC2 instance in the next chapter, see that the data is stored in the cloud, and retrieve this data from the EC2 instance.

Great job!

Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 4. Chapter 4
some-alt