cloud-sql-basics

Automates Cloud SQL instance creation, user management, and backup/restore via gcloud SDK.

Updated Jul 3, 2026
One-click install
npx skills add https://github.com/pxlcrtiv/opencode-setup --skill cloud-sql-basics-pxlcrtiv
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloud-sql-basics
Source: https://github.com/pxlcrtiv/opencode-setup/tree/main/skills/cloud-sql-basics
Command: npx skills add https://github.com/pxlcrtiv/opencode-setup --skill cloud-sql-basics-pxlcrtiv

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires gcloud, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps users automate the process of creating and managing Cloud SQL instances, simplifying the setup and management of MySQL, PostgreSQL, and SQL Server databases in the cloud.

Core Features & Use Cases

  • Create Cloud SQL Instances: Automate the creation of MySQL, PostgreSQL, and SQL Server instances.
  • Manage Database Users: Set passwords, create users, and manage permissions.
  • Database Management: Automate backups, restores, and scaling operations.
  • Use Case: Ideal for developers or system administrators looking to quickly set up and maintain a managed database service without manual configuration.

Quick Start

Enable the Cloud SQL API, create an instance with the gcloud sql instances create command, and then set a password for the default user 'postgres'.

Frequently Asked Questions about cloud-sql-basics

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Cloud SQL instance creation for PostgreSQL and MySQL?

You can automate Cloud SQL instance creation by running scripted commands that provision MySQL, PostgreSQL, and SQL Server databases. This handles the setup automatically, eliminating manual configuration through the Google Cloud Platform console.

Do I need the gcloud SDK to manage Cloud SQL instances?

Yes, you need the gcloud SDK installed and the Cloud SQL API enabled to manage instances. The automation relies on gcloud commands to execute database creation, user management, and backup operations.

Can I automate database backups and restores for Cloud SQL?

Yes, you can automate database backups and restores for Cloud SQL. The automation handles backup operations and restoration processes directly, ensuring your managed database instances maintain data redundancy.

What is the best way to manage database users in Cloud SQL?

The best way to manage database users in Cloud SQL is through automated scripts that set passwords, create users, and manage permissions. This removes the need for manual user configuration across your instances.

Does this approach support SQL Server on Google Cloud Platform?

Yes, this approach fully supports SQL Server on Google Cloud Platform alongside MySQL and PostgreSQL. It automates instance creation and management for all three database engines using the Cloud SQL API.

How do I set up connectivity options for a managed Cloud SQL database?

To set up connectivity for a managed Cloud SQL database, the automation provides specific connectivity options during instance creation. This ensures your applications can securely access the database immediately after provisioning.