Total Page Preview:   000000000844

How to get cloud SQL users list using cloudshell in gcp?

In this article I am going to explain how to get cloud sql users list in google cloud(gcp) cloudshell command.

 

Syntax 

gcloud sql users list --instance=INSTANCE-i INSTANCE [--filter=EXPRESSION] [--limit=LIMIT] [--page-size=PAGE_SIZE] [--sort-by=[FIELD,…]]

 

Example

gcloud sql users list --instance instance1

gcloud sql users list --instance instance1  --format="json"

 

 

OUTPUT

NAME          HOST
mysql.sys     localhost
root               %
 

 

 

Thank You

About Author

Brijesh Kumar

Database Developer

I have more then 6 years Experience in Microsoft Technologies - SQL Server Database, ETL Azure Cloud - Azure SQL Database, CosmosDB, Azure Data Factory, PowerBI, Web Job, Azure Function, Azure Storage, Web Apps, Powershall and Database Migration On-Premise to Azure Cloud.
LinkedIn : https://www.linkedin.com



Comments