- Lab
- A Cloud Guru
Working with Data in Google Cloud SQL
SQL databases are a foundation of computing in general, and cloud computing is no exception. Cloud SQL is a particularly robust implementation of a relational database service with rapid scalability, high availability, and secure replication. In this hands-on lab, you’ll see how to set up a Cloud SQL instance, add a MySQL database, and import the schema and data of a large dataset. Once it’s set up, you’ll run through several sample queries.
Path Info
Table of Contents
-
Challenge
Enable APIs
Enable the Cloud SQL APIs.
-
Challenge
Create Cloud Storage Bucket
Create a Cloud Storage bucket.
Note: The following locations are allowed in the lab: US-East-1, US-West-1, US-Central-1, Europe-West-1, and Australia-Southeast-1).
-
Challenge
Clone a GitHub Repository and Copy to Bucket
Open the Cloud Shell, clone the GitHub repository, and copy the necessary files to the Cloud Storage bucket.
-
Challenge
Create a Cloud SQL Instance
Create a Cloud SQL instance.
-
Challenge
Create Database, Table, and Import Schema
Create the database, then create a table, and finally, import the schema.
-
Challenge
Import Data
Import the
MetObjects_subset.csv
data. -
Challenge
Query Database
Connect to the database in Cloud Shell, declare the
met_museum
database, and query Met objects.
What's a lab?
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.