Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
google avatar

Cloud Sql Basics

  • 9k installs
  • 15.6k repo stars
  • Updated August 4, 2026
  • google/skills

cloud-sql-basics is an agent skill that creates and explains Google Cloud SQL instances and databases for MySQL, PostgreSQL, and SQL Server with gcloud and Auth Proxy connection steps.

About

The cloud-sql-basics skill generates and explains Cloud SQL resources for MySQL, PostgreSQL, and SQL Server on Google Cloud. Cloud SQL manages third-party database engines with automated patches, backups, high availability, and secure connectivity. Prerequisites require Cloud SQL Admin IAM role access. The PostgreSQL quick start enables sqladmin.googleapis.com, creates an instance with gcloud sql instances create specifying version CPU memory and region, sets the postgres user password, creates a database, retrieves the PROJECT_ID:REGION:INSTANCE_NAME connection name, starts the Cloud SQL Auth Proxy, and connects via psql on localhost. Reference directories cover core concepts, CLI usage, client libraries for Python Java Node and Go, MCP usage, Terraform IaC, and IAM security including SSL and Auth Proxy configuration. Use when users ask to create a Cloud SQL instance or database, or need managed relational database setup on GCP with proxy-based local connections.

  • Managed MySQL, PostgreSQL, and SQL Server with automated patches and backups.
  • PostgreSQL quick start via gcloud instance create, user password, and database create.
  • Connection name format PROJECT_ID:REGION:INSTANCE_NAME for Auth Proxy access.
  • Reference docs for CLI, client libraries, Terraform IaC, IAM, and MCP usage.
  • Requires Cloud SQL Admin role for instance and user management.

Cloud Sql Basics by the numbers

  • 9,034 all-time installs (skills.sh)
  • +561 installs in the week ending Aug 5, 2026 (Skillselion tracking)
  • Ranked #57 of 1,039 Cloud & Infrastructure skills by installs in the Skillselion catalog
  • Security screen: HIGH risk (skills.sh audit)
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
At a glance

cloud-sql-basics capabilities & compatibility

Capabilities
gcloud cloud sql instance and database provision · postgresql quick start with user password setup · auth proxy connection workflow · reference routing for iac, iam, and client libra · multi engine support for mysql postgresql sql se
Works with
gcp
Use cases
database · devops · api development
From the docs

What cloud-sql-basics says it does

Cloud SQL is a fully managed relational database service for MySQL, PostgreSQL, and SQL Server.
SKILL.md
The Cloud SQL Auth Proxy must be running to be able to connect to the instance.
SKILL.md
npx skills add https://github.com/google/skills --skill cloud-sql-basics

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs9k
repo stars15.6k
Security audit2 / 3 scanners passed
Last updatedAugust 4, 2026
Repositorygoogle/skills

How do I create a managed Cloud SQL PostgreSQL instance on GCP and connect locally through the Auth Proxy?

Create and connect to Google Cloud SQL instances for MySQL, PostgreSQL, or SQL Server using gcloud and the Auth Proxy.

Who is it for?

Developers setting up GCP managed relational databases who have Cloud SQL Admin IAM permissions.

Skip if: Skip for self-hosted Postgres on VMs without Cloud SQL or non-GCP cloud providers.

When should I use this skill?

User asks to create a Cloud SQL instance or database for MySQL, PostgreSQL, or SQL Server on Google Cloud.

What you get

A provisioned Cloud SQL instance and database with connection name, proxy command, and psql connection string for local access.

  • gcloud sql command recipes
  • instance configuration flags
  • connection setup steps

By the numbers

  • Documents MYSQL_8_0 as a supported --database-version flag in create examples

Files

SKILL.mdMarkdownGitHub ↗

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.

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 \
      --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: Instance architecture, high

availability (HA), and supported database engines.

  • CLI Usage: Essential gcloud sql commands for

instance, database, and user management.

  • Client Libraries & Connectors:

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

  • MCP Usage: Using the Cloud SQL remote MCP

server and Gemini CLI extension.

  • Infrastructure as Code: Terraform

configuration for instances, databases, and users.

  • IAM & Security: Predefined roles, SSL/TLS

certificates, and Auth Proxy configuration.

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

Related skills

How it compares

Pick cloud-sql-basics over generic SQL skills when the stack is Google Cloud SQL and operations must run through gcloud rather than ORM migrations alone.

FAQ

Which IAM role is needed for Cloud SQL setup?

Cloud SQL Admin (roles/cloudsql.admin) provides full access to create and manage instances.

How do you connect locally to Cloud SQL PostgreSQL?

Start cloud-sql-proxy with the instance connection name, then connect psql to 127.0.0.1:5432.

What database engines does Cloud SQL support?

MySQL, PostgreSQL, and SQL Server as fully managed instances on Google Cloud.

Is Cloud Sql Basics safe to install?

skills.sh reports 2 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.