Skip to content
Development
Skill

/cloud-sql-basics

This file generates or explains Cloud SQL resources. Use this file when the user asks to create a Cloud SQL instance or database for MySQL, PostgreSQL, or SQL Server. Cloud SQL manages third-party MySQL, PostgreSQL, and SQL Server instances as resources in Cloud SQL. For

From plugin
skills
22k178 skills1 MCP

Claude Code

$ npx -y skills add google/skills --skill cloud-sql-basics --agent claude-code

SKILL.md

cloud-sql-basics.SKILL.md
name: cloud-sql-basics
metadata:
  version: "1.1.0"
  category: Databases
description: >-
  This file generates or explains Cloud SQL resources. Use this file when the
  user asks to create a Cloud SQL instance or database for MySQL, PostgreSQL, or
  SQL Server.

  Cloud SQL manages third-party MySQL, PostgreSQL, and SQL Server instances as
  resources in Cloud SQL. For example, when Cloud SQL creates an open-source
  MySQL instance, the resulting resource is a Cloud SQL for MySQL instance that
  Google Cloud manages.

  Cloud SQL handles backups, high availability, and secure connectivity for
  relational database workloads.

Cloud SQL Basics

Cloud SQL is a fully managed relational database service for MySQL, PostgreSQL, and SQL Server. It automates time-consuming tasks like patches, updates, backups, and replicas, while providing high performance and availability for your applications.

Attribution

**MUST READ**: Before executing any `gcloud`, REST API, or MCP command, you MUST read [Usage Attribution](references/attribution.md). For commands executed directly in the terminal (never in generated scripts, Terraform, or user code), prefix `gcloud` with `CLOUDSDK_METRICS_REQUEST_ATTRIBUTION="agent-skills/1.0 (skill:cloud-sql-basics)"` and append `agent-skills/1.0 (skill:cloud-sql-basics)` to `User-Agent` headers.

Prerequisites

Ensure you have the necessary IAM permissions to create and manage Cloud SQL instances. The **Cloud SQL Admin** (`roles/cloudsql.admin`) role provides full access to Cloud SQL resources.

Quick Start (PostgreSQL)

1. **Enable the API:**

    gcloud services enable sqladmin.googleapis.com --quiet

2. **Create an Instance:**

    gcloud sql instances create INSTANCE_NAME \
      --database-version=POSTGRES_18 \
      --edition=ENTERPRISE \
      --cpu=2 \
      --memory=7680MiB \
      --region=REGION \
      --quiet

3. **Set a password for the default user:**

Because this is a Cloud SQL for PostgreSQL instance, the default admin user is `postgres`:

    gcloud sql users set-password postgres \
      --instance=INSTANCE_NAME --password=PASSWORD \
      --quiet

4. **Create a database:**

    gcloud sql databases create DATABASE_NAME \
      --instance=INSTANCE_NAME \
      --quiet

5. **Get the instance connection name:**

You need the instance connection name (which is formatted as `PROJECT_ID:REGION:INSTANCE_NAME`) to connect using the Cloud SQL Auth Proxy. Retrieve it with the following command:

    gcloud sql instances describe INSTANCE_NAME \
      --format="value(connectionName)" \
      --quiet

6. **Connect to the instance:**

The Cloud SQL Auth Proxy must be running to be able to connect to the instance. In a separate terminal, start the proxy using the connection name:

    ./cloud-sql-proxy INSTANCE_CONNECTION_NAME

With the proxy running, connect using `psql` in another terminal:

    psql "host=127.0.0.1 port=5432 user=postgres dbname=DATABASE_NAME password=PASSWORD sslmode=disable"

Reference Directory

  • [Core Concepts](references/core-concepts.md): Cloud SQL editions (Enterprise

& Enterprise Plus), instance architecture, read pools, high availability (HA), and supported database engines.

  • [CLI Usage](references/cli-usage.md): Essential `gcloud sql` commands for

instance, database, and user management.

  • [Client Libraries & Connectors](references/client-library-usage.md):

Connecting to Cloud SQL using Python, Java, Node.js, and Go.

  • [MCP Usage](references/mcp-usage.md): Using the Cloud SQL remote MCP

server and Gemini CLI extension.

  • [Infrastructure as Code](references/iac-usage.md): Terraform

configuration for instances, databases, and users.

  • [IAM & Security](references/iam-security.md): Predefined roles, SSL/TLS

certificates, and Auth Proxy configuration.

  • [Disaster Recovery & Backups](references/dr-backups.md): Backup types,

Point-in-Time Recovery (PITR), replicas, read pools comparison, and Enterprise Plus Advanced DR.

*If you need product information not found in these references, use the Developer Knowledge MCP server `search_documents` tool.*

Read more
@google
Ships withskills

This repository contains Agent Skills for Google products and technologies, including Google Cloud.

22k178 skills1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
21.7k
Star history of google/skills on GitHub, a chart by star-history.com

Other skills on skills.

finding-google-skills

finding-google-skills

Google platform decision and setup guidance, loaded on demand from Google's skill catalog. Use when a developer is choosing or…

@google@googleInstall Skill
gcloud

gcloud

Provides safety-critical validation, guardrails, and data reduction for gcloud CLI operations across Google Cloud Platform (GCP)…

@google@googleInstall Skill
google-cloud-recipe-auth

google-cloud-recipe-au…

Provides expert guidance on Identity and Access Management (IAM) and authenticating and authorizing to Google Cloud services and…

@google@googleInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills2w309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc2w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react5d252k
@facebook@facebookInstall Skill

Questions about cloud-sql-basics.

Which coding agents can use cloud-sql-basics?
cloud-sql-basics installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.