Stay organized with collections Save and categorize content based on your preferences.
This page describes how to explore and manage your Cloud SQL data using Cloud SQL Studio in the Google Cloud console.
Cloud SQL Studio lets authorized users interact directly with the SQL database and run SQL queries from the Google Cloud console to access and manipulate data. You can perform a range of actions that you would perform on a SQL command line client, such as creating tables and indexes, modifying tables, or setting up views.
Cloud SQL Studio includes an Explorer pane that integrates with a query editor and a SQL query results table. You can run DDL, DML, and DQL statements from this one interface. For example, instead of configuring a third-party database query tool, you can create a table and query your data using the query editor in Cloud SQL Studio.
You can use the Explorer pane to view and interact with your database objects. You create, alter, and delete the database objects, such as the following:
You can also use the Explorer pane to seed SELECT
queries for tables.
INFORMATION_SCHEMA
and PG_CATALOG
schema is read-only.
If you're new to Cloud SQL, see Cloud SQL overview.
Required roles and permissionsTo get the permissions that you need to complete the tasks in this document, ask your administrator to grant you the Cloud SQL Studio User (roles/cloudsql.studioUser
) IAM role on the project. For more information about granting roles, see Manage access to projects, folders, and organizations.
You might also be able to get the required permissions through custom roles or other predefined roles.
To use Cloud SQL Studio, you must have the following permissions:
cloudsql.databases.list
cloudsql.instances.executeSql
cloudsql.instances.get
cloudsql.instances.login
(only required if you're using IAM database authentication)cloudsql.users.list
Additionally, ensure that you have database-level permissions for the database that you're using for authentication, and the password for the privileged database user that you're using.
Authenticate to Cloud SQL StudioBefore you can access a database in Cloud SQL Studio, you must first select a database authentication method. To sign in to your database using Cloud SQL Studio, you can use one of the following types of authentication:
IAM database authentication. Using this type of authentication lets you sign in to your database and Cloud SQL Studio without having to manage an extra password. You can also take advantage of IAM group authentication and manage the database access and privileges for multiple users in your organization at the same time.
Built-in database authentication. You connect to the database in Cloud SQL Studio by using your PostgreSQL user account and credentials.
To access the Explorer pane, follow these steps:
In the Google Cloud console, go to the Cloud SQL Instances page.
Using the SQL editor, you can run a combination of DDL, DML, and DQL statements. You can compose a query yourself, or you can populate the query editor with a template using the explorer.
To structure, modify, or query your data, follow these steps:
In the Google Cloud console, go to the Cloud SQL Instances page.
SET STATEMENT_TIMEOUT
isn't supported.Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-02 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-02 UTC."],[],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4