Creating a MySQL Database in Cloud SQL

30 minutes
  • 1 Learning Objectives

About this Hands-on Lab

Learning how to provide a database solution for your company’s needs is an important skill to have. Knowing how to configure your database instance for that solution is even more important. In this hands-on lab, we will learn how to configure our MySQL instance to accommodate our team’s needs.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Configure the Cloud SQL Instance
  1. From the main console navigation head over to SQL.
  2. Click Create instance.
  3. Choose MySQL.
  4. Name the instance "dev-instance":
    • Root password: 12345
    • Database version: MySQL 5.7
  5. Click Show configuration options.
    • Make sure Public IP is enabled.
  6. Click on Machine type and storage.
    • Click on Change, choose db-g1-small machine type, and click Select.
    • Make sure SSD Storage type is selected.
  7. Click on Auto backups and high availability.
    • Automate backups: 11:00 PM – 3:00 AM
    • Enable binary logging: Check
    • Availability: High availability (regional)
  8. Click on Maintenance.
    • Preferred window: Saturday
  9. Click on Labels.
    • Key: Instance
    • Value: dev
  10. Click Create.

Additional Resources

You have been tasked with setting up a database instance for your team. There are specific details on the configuration that your manager has laid out for you.

Your team wants to use MySQL and they want to use the latest database version. The instance should be able to be connected to over public IP. Also, the instance should have at least 1.5 GB of memory as well as use the fastest performing storage disk.

This instance should be able to back up and replicate data, and you should configure this instance to be highly available in case of a disaster.

They want you to think of updates that need to be applied to the instance and configure in a way where they do not affect the busiest days of the week.

And last, they want be able to distinguish this instance from the dev team's instance.

What are Hands-on Labs

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.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?