DEV Community

Abd Alrhman Alloush
Abd Alrhman Alloush

Posted on Originally published at 1datacloud.ai

GCP Cloud SQL Management Without the Google Console

The Google Cloud Console is one of the more thoughtfully designed cloud management interfaces available. Compared to some of its peers, it's clean, well-organized, and relatively fast.

It's also not the right tool for day-to-day database management at scale.

If your team runs Cloud SQL instances across multiple GCP projects — or runs Cloud SQL alongside Cloud Spanner, AWS RDS, or on-premise databases — the GCP Console creates the same fragmentation problem that every cloud-native console creates: it shows you only what lives inside that one context, and getting a complete picture of your database infrastructure requires stitching together multiple views across multiple projects and providers.

This guide covers where the GCP Console falls short for database management, what an effective GCP Cloud SQL workflow looks like, and how teams are improving their Cloud SQL management today.


Where the GCP Console Falls Short for Cloud SQL Management

No cross-project database inventory

GCP organizes resources by project. If your organization uses separate projects for production, staging, and development — which is the recommended GCP architecture — your Cloud SQL instances are scattered across those projects.

The GCP Console has no view that shows you every Cloud SQL instance across all your projects at once. Getting that answer requires navigating to each project separately, opening SQL in each one, and mentally or manually compiling the list.

For teams with 5+ projects, this is a real daily friction point. For teams managing Cloud SQL alongside other cloud providers, it becomes untenable.

Context-switching between management and querying

The GCP Console lets you view and configure Cloud SQL instances. It has a built-in query editor (Cloud SQL Studio) that you can use for basic SQL execution. But the workflow is fragmented: you manage instances in one part of the console, you query in another, and the interface is optimized for administration tasks rather than fast, daily querying.

More importantly, Cloud SQL Studio only works with Cloud SQL. If your organization also runs Cloud Spanner, AWS RDS, or any other database engine, you're back to maintaining separate tools for each.

Service Account management complexity

Connecting to Cloud SQL securely — especially from external tools — requires configuring a Service Account with the correct IAM roles, downloading a JSON key, and often setting up the Cloud SQL Auth Proxy for private instances.

This is the right architecture for production security. But it creates real friction for teams who want to iterate quickly or onboard new engineers to existing infrastructure. Getting a new team member connected to a Cloud SQL instance for the first time is not a five-minute task.

Schema exploration is manual

Once you're in Cloud SQL Studio, exploring your database schema still requires manual effort: run SHOW TABLES;, then DESCRIBE table_name; for each table you want to understand. For complex databases with dozens or hundreds of tables, building a mental model of the schema takes significant time.


A Better Workflow for GCP Cloud SQL Management

Here's what effective Cloud SQL management looks like with the right tooling:

Step 1 — Connect your GCP account once

Provide a GCP Service Account JSON with read-only permissions — specifically roles/cloudsql.viewer and roles/spanner.viewer. The platform uses the GCP API to discover every Cloud SQL and Cloud Spanner instance across all your projects automatically. No manual project-by-project browsing.

Step 2 — View your complete GCP database inventory

Every Cloud SQL instance — across every project, region, and database engine — appears in a single list. Instance name, project, region, database version, tier, disk size, status, and connection name. Filter by project, region, or status. Engine and version are shown right in the table, so you can scan for what you need at a glance.

Step 3 — Connect to any instance directly

Select an instance and connect to it — no Auth Proxy to configure, no separate client to open. The platform handles the connectivity. Once connected, your full schema is loaded automatically: every table, every column, every data type.

Step 4 — Query in plain English or SQL

Ask your question in plain English. The AI reads your actual schema — your real table and column names — and generates correct MySQL or PostgreSQL syntax for your specific instance. Execute read-only, get results as a table or chart, export to CSV.


Supported GCP Database Services

Google Cloud SQL

Cloud SQL is GCP's fully managed relational database service. 1DataCloud supports all three Cloud SQL engines:

Engine Version Support Common Use Cases
MySQL 5.7, 8.0 Web applications, CMS, legacy migration
PostgreSQL 12, 13, 14, 15 Modern SaaS, analytics, PostGIS
SQL Server 2017, 2019 Enterprise applications, .NET workloads

Google Cloud Spanner

Cloud Spanner is GCP's globally distributed, horizontally scalable relational database — designed for applications that need strong consistency across regions. Managing Spanner instances and querying Spanner databases is supported alongside Cloud SQL in a unified view.

Coming Soon

  • BigQuery: GCP's serverless data warehouse. Natural language querying for BigQuery tables is on the roadmap.
  • Firestore: Document database support is planned.

Common GCP Cloud SQL Use Cases This Solves

Use case 1: Cross-project database audit

Before: Log into the GCP Console → navigate to each project → open SQL → note instance states and configurations → repeat for each project → compile manually.

After: Open your unified dashboard → every Cloud SQL instance across every project is listed automatically → filter by project or status → done in 30 seconds.

Use case 2: Querying a Cloud SQL instance without the Auth Proxy

Before: Configure Cloud SQL Auth Proxy → install gcloud CLI → authenticate → start proxy → open a separate SQL client → configure connection → connect → write SQL from memory.

After: Select the Cloud SQL instance in the dashboard → connect directly → ask your question in plain English → results back as a chart.

Use case 3: Onboarding a new engineer to GCP infrastructure

Before: Share Service Account credentials → walk through each project → explain which instances exist → hand over schema documentation → wait while they set up Cloud SQL Studio or a local client.

After: Add them to the 1DataCloud organization → every instance is visible → they can connect and explore schemas by asking questions immediately.

Use case 4: Multi-cloud inventory (GCP + AWS)

Before: GCP Console for Cloud SQL instances, AWS Console for RDS instances — two separate workflows with no unified view.

After: Both appear in the same dashboard. Filter by provider. Query any database — Cloud SQL, Cloud Spanner, AWS RDS, MongoDB — from the same interface.

This last use case is where GCP-specific tools hit their ceiling. If you run any workloads outside GCP, a GCP-only tool solves half the problem.


Security Model for GCP Cloud SQL

Connecting a third-party platform to your Cloud SQL instances requires careful consideration. Here's the security model that matters:

Minimum required IAM permissions

The Service Account used by 1DataCloud requires only:

roles/cloudsql.viewer         — read instance metadata
roles/cloudsql.client         — connect to instances for querying
roles/spanner.viewer          — read Spanner instance metadata
Enter fullscreen mode Exit fullscreen mode

No write permissions. No admin roles. No access to other GCP services.

Read-only query execution

All queries executed through Query1AI are strictly read-only. The platform generates and executes only SELECT statements — never INSERT, UPDATE, DELETE, DROP, or any DDL operation. This is enforced at the application level.

Encrypted credential storage

Your Service Account JSON is encrypted at rest using industry-standard encryption. It is never exposed in the UI, never logged, and never transmitted outside the platform's secure environment.

No data storage

1DataCloud stores only metadata — table names, column names, data types. Your actual database contents are never stored, cached, or replicated by the platform. Query results are returned to your browser session and are not persisted server-side.


GCP Cloud SQL vs Cloud Spanner: Managing Both in One Place

Teams running workloads on GCP often use both Cloud SQL and Cloud Spanner — Cloud SQL for standard relational workloads and Spanner for applications requiring global distribution and horizontal scaling.

Managing both through the GCP Console means navigating separate service pages, with different configuration models and different query syntaxes (standard SQL for Cloud SQL vs Spanner SQL with its own specifics).

1DataCloud shows both Cloud SQL and Cloud Spanner instances in the same inventory view. You can connect to either and query both using plain English — the AI handles the syntax differences between MySQL, PostgreSQL, and Spanner SQL automatically.


1DataCloud for GCP Cloud SQL Management

1DataCloud connects to your GCP account using a Service Account JSON and automatically discovers every Cloud SQL and Cloud Spanner instance across all your projects.

What you get:

  • Complete Cloud SQL + Spanner inventory across all GCP projects in one view
  • Filter by project, region, or status
  • Direct database connectivity — no Auth Proxy setup required
  • Full schema metadata loaded automatically on connect
  • Natural language querying via Query1AI — works with MySQL, PostgreSQL, and Spanner SQL
  • Results as tables or charts, exportable to CSV
  • Unified view alongside AWS RDS, MongoDB Atlas, and on-premise databases

Free to try. Setup in under five minutes.

👉 Connect your GCP account at 1datacloud.ai


Frequently Asked Questions

What GCP permissions does 1DataCloud require?

Read-only IAM roles: roles/cloudsql.viewer, roles/cloudsql.client (for connecting to instances), and roles/spanner.viewer. No write or admin permissions are required.

Does it work with private Cloud SQL instances (no public IP)?

For instances without a public IP, direct connectivity requires the Cloud SQL Auth Proxy or a network path to the instance. Metadata discovery (inventory) works regardless via the GCP API.

Can I connect multiple GCP projects?

Yes — all projects associated with the Service Account are discovered automatically. Instances from all projects appear in the same unified inventory view.

Does it support Cloud Spanner?

Yes. Cloud Spanner instances are discovered alongside Cloud SQL instances. You can connect to Spanner databases and query them in plain English — Query1AI generates correct Spanner SQL syntax.

Is the Service Account JSON stored securely?

Yes. It is encrypted at rest and never exposed in the UI or logs. You can revoke the Service Account at any time from the GCP Console to immediately remove the platform's access.

Can I use this alongside my AWS databases?

Yes — this is one of the primary use cases. Add both your GCP Service Account and your AWS IAM credentials, and all instances from both providers appear in the same unified dashboard.


Summary

The GCP Console is the right tool for provisioning, configuring, and administering Cloud SQL instances. It is not the right tool for the daily workflow of managing, inventorying, and querying those databases at speed — especially when your infrastructure spans multiple GCP projects, or when you also run databases on AWS or other providers.

The gap is filled by a unified dashboard that connects to your GCP account, discovers every Cloud SQL and Spanner instance automatically, handles connectivity without requiring the Auth Proxy, and lets your entire team query those databases in plain English — without switching tools, without writing SQL from memory, and without navigating the GCP Console for answers.


Connect your GCP account free at 1datacloud.ai — your Cloud SQL inventory is ready in under five minutes.

Top comments (0)