Cloud SQL for MySQL – Qwik Start (GSP151)
☁️ Cloud SQL for MySQL – Qwik Start (GSP151) Summary



Here’s a quick revision + exam-style understanding guide for your 15-minute lab.
✅ Task 1: Create a Cloud SQL Instance
Steps:
Go to Navigation Menu → Cloud SQL
Click Create Instance
Choose:
Database Engine → MySQL
Edition → Enterprise
Preset → Development
Version → MySQL 8
Instance ID →
myinstanceGenerate and save root password
Region →
us-west1Primary Zone →
us-west1-bClick Create
✔ After creation, green checkmark confirms success.
🔎 Concept Question
Instance ID is used to uniquely identify your instance within the project.
✅ Answer: TRUE
Yes, Instance ID uniquely identifies the Cloud SQL instance inside your Google Cloud project.
✅ Task 2: Connect Using MySQL Client (Cloud Shell)
Open Cloud Shell and run:
gcloud sql connect myinstance --user=root
Click Authorize
Enter root password
You’ll see:
mysql>
✔ Now you're connected to the database server.
✅ Task 3: Create Database & Insert Data
Step 1: Create Database
CREATE DATABASE guestbook;
Step 2: Use Database
USE guestbook;
Step 3: Create Table
CREATE TABLE entries (
guestName VARCHAR(255),
content VARCHAR(255),
entryID INT NOT NULL AUTO_INCREMENT,
PRIMARY KEY(entryID)
);
Step 4: Insert Data
INSERT INTO entries (guestName, content) VALUES
("first guest", "I got here!"),
("second guest", "Me too!");
Step 5: Retrieve Data
SELECT * FROM entries;
✔ Output:
| guestName | content | entryID |
| first guest | I got here! | 1 |
| second guest | Me too! | 2 |


🎯 Key Learning Outcomes
After completing this lab, you can:
✔ Create a managed MySQL database in Google Cloud
✔ Connect securely using Cloud Shell
✔ Perform basic SQL operations (CREATE, INSERT, SELECT)
✔ Understand Cloud SQL instance configuration
Comments
Join the discussionNo comments yet. Be the first to comment.
