Using the Cloud SDK

This page describes how to get started with the Cloud SDK so you can use it to manage Cloud SQL instances. The Cloud SDK provides the gcloud command-line tool to interact with Cloud SQL and other Google Cloud Platform services. The gcloud tool uses the API to access Cloud SQL, so you must enable the API before you can use the gcloud tool to access Cloud SQL.

For gcloud examples, see the How-to page for the task.

Getting started with the gcloud command-line tool

To start with the gcloud tool, review the Cloud SDK Documentation. You can get help for the tool, resources, and commands by using the --help flag:

gcloud sql --help
gcloud sql instances --help
gcloud sql instances create --help

The help displayed with the --help flag is also available in the Cloud SDK reference for gcloud sql.

Finally, configure a project as your default project with two commands. The first command below lists the configuration for the gcloud tool, including any default project already set. The second command sets the default project.

gcloud config list
gcloud config set project [PROJECT_ID]
Was this page helpful? Let us know how we did:

Send feedback about...

Cloud SQL for MySQL