THE MEDIA FOR AI THAT ACTUALLY HELPS.English edition · Understand & take action
Google

SQL Cloud Databases

cloud-sql-basics

In brief

Creating and explaining SQL Cloud instances and databases for MySQL, PostgreSQL or SQL Server. Cloud SQL manages these engines as Google Cloud resources: backups, high availability, secure connectivity, for a classic relational load. A "open source" PostgreSQL thus provided becomes a cloud instance SQL for PostgreSQL, distinct from alloyDB. The skill includes a postgreSQL rapi start and a reference directory. To choose the engine, cloud-databases-onboarding is more upstream; AlloyDB, Spanner and Bigtable have their own bases.

What it does

  • Helps to create an SQL Cloud instance (MySQL, PostgreSQL or SQL Server) and a database, with the usual requirements (project, network, billing).
  • Recalls what the service manages (safeguards, high availability, connectivity) in relation to a self-hosted base.
  • Can rely on the documented PostgreSQL course, while covering all three service engines.
  • Returns AlloyDB, Spanner, Bigtable and the initial engine choice to the corresponding skills.

Who it is for, and an example

Developers who need a relational instance managed MySQL, PostgreSQL or SQL Server, not a Spanner or AlloyDB cluster.

Example request: "Creates a PostgreSQL SQL Cloud instance with a database, explains backups and HA, and does not switch to AlloyDB unless asked. »

The SKILL.md provides and explains SQL Cloud (MySQL, PostgreSQL, SQL Server), distinct from AlloyDB and other Google Cloud engines. Example written by iadujour.fr from the SKILL.md, not tested.

Install

npx skills add google/skills, then select the skill, target agents and range (README).

npx skills add google/skills

Level: Intermediate

Suppose a Google Cloud project and control of SQL or Python for data.

SKILL.md excerpt

The original description, which the agent reads to decide whether to load the skill (in English):

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. […]

Quoted from SKILL.md at commit 793c036 . The folder also contains 8 extra files (references/).

The SKILL.md has 133 lines and 4 main sections:

  • Attribution
  • Prerequisites
  • Quick Start (PostgreSQL)
  • Reference Directory

Licence: Apache 2.0

Checked on 10 November 2026 : repository LICENSE file .

The licence allows reuse: the full SKILL.md text is reproduced below, unmodified, with its licence notice.

Full SKILL.md text

Reproduced unmodified from google/skills (commit 793c036) , © Google, under licence Apache 2.0 (original licence file ).

Show the original SKILL.md (133 lines, in English)
---
name: cloud-sql-basics
metadata:
  version: "1.0.1"
  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:**
    
    ```bash
    gcloud services enable sqladmin.googleapis.com --quiet
    ```

2.  **Create an Instance:**
    
    ```bash
    gcloud sql instances create INSTANCE_NAME \
      --database-version=POSTGRES_18 \
      --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`:
    
    ```bash
    gcloud sql users set-password postgres \
      --instance=INSTANCE_NAME --password=PASSWORD \
      --quiet
    ```

4.  **Create a database:**
    
    ```bash
    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:
    
    ```bash
    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:
    
    ```bash
    ./cloud-sql-proxy INSTANCE_CONNECTION_NAME
    ```

    With the proxy running, connect using `psql` in another terminal:
    
    ```bash
    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.*
Source. Card written by iadujour.fr from: Frontmatter, sections and body of the deposit. Checked on 10 November 2026. google/skills .
SAME PUBLISHER

Other Google skills: Data and databases

Whole category
GoogleData and databases

Multicloud Analytical Agent (Spark, Knowledge Catalog)

google-cloud-solution-agentic-analytics-spark-knowledge-catalog

A governed, end-to-end synthetic analytical solution around Knowledge Catalog and Apache Spark (Lightning Engine) managed service.

Tools: Not specified by the publisherLevel: Advancedupdated 09/11/2026
GoogleData and databases

IA and ML integrated into BigQuery

bigquery-ai-ml

When the analysis is to be done in SQL in BigQuery, with the already integrated learning and generative AI functions, this skill helps choose the right function: time series prediction, value prediction, detection of anomalies or ruptures, search for key factors, semantic or vector search, text classification, similarity, summary, translation, model evaluation, semantic filters, causal effect of intervention, correlations, descriptive statistics and distribution patterns, trend or seasonality.

Tools: Not specified by the publisherLevel: Intermediateupdated 06/11/2026
GoogleData and databases

Translate Snowflake dbt models to BigQuery

dbt-sf-to-bq-translator

Translation of dbt SQL models written for Snowflake into a normalized BigQuery SQL.

Tools: Not specified by the publisherLevel: Advancedupdated 03/11/2026
DISCUSSION

Comments.

A field note, a question, a precision on this skill? Comments are reviewed before publication.

Published comments

Loading comments…

    Leave a comment

    Moderation charter. Every comment is reviewed before publication. We refuse hate speech, insulting or discriminatory language, advertising, spam and promotional links, off-topic posts and other people’s personal data.