gcloud sql Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud sql - create and manage Google Cloud SQL databases
- SYNOPSIS
gcloud sqlGROUP|COMMAND[GCLOUD_WIDE_FLAG …]
- DESCRIPTION
- The gcloud sql command group lets you create and manage Google Cloud SQLdatabases.
Cloud SQL is a fully-managed database service that makes it easy to set up,maintain, manage, and administer your relational databases in the cloud.
More information on Cloud SQL can be found here:https://cloud.google.com/sql anddetailed documentation can be found here:https://cloud.google.com/sql/docs/
- GCLOUD WIDE FLAGS
- These flags are available to all commands:
--help.Run
$gcloud helpfor details. - GROUPS
is one of the following:GROUPbackups- Provide commands for working with backups of Cloud SQL instances.
databases- Provide commands for managing databases of Cloud SQL instances.
export- Provide commands to export Cloud SQL instances.
flags- Provide a command to list flags.
import- Provides commands to import Cloud SQL instances.
instances- Provide commands for managing Cloud SQL instances.
operations- Provide commands for working with Cloud SQL instance operations.
ssl- Provide commands for managing SSL certificates of Cloud SQL instances.
ssl-certs(DEPRECATED)Provide commands for managing SSL certificates ofCloud SQL instances.tiers- Provide a command to list tiers.
users- Provide commands for managing Cloud SQL users.
- COMMANDS
is one of the following:COMMANDconnect- Connects to a Cloud SQL instance.
generate-login-token- Generate an IAM login token for Cloud SQL.
reschedule-maintenance- Reschedule a Cloud SQL instance's maintenance.
- NOTES
- These variants are also available:
gcloudalphasqlgcloudbetasql
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-07 UTC.