Total Page Preview:   000000005180

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

Cardwell
06-Mar-2021
I would like to thank you for the efforts you have put in writing this site. I am hoping to check out the same high-grade content from you later on as well. In truth, your creative writing abilities has motivated me to get my own blog now ;)