← Cloud SQL190 / 640
hardgcloud

Open an interactive SQL session to a Cloud SQL instance

command

gcloud sql connect INSTANCE_NAME --user USER

also accepted

gcloud sql connectgcloud sql connect INSTANCE_NAME

Command breakdown

Part of the Google Cloud CLI (gcloud) — Cloud SQL category.

gcloudsqlconnectINSTANCE_NAME--userUSER
FlagPurpose
--userBoolean flag

Test your recall — not just your reading.

Practice with interactive quiz →