1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-08 18:45:13 +00:00
gcloud-help/gcloud/beta/sql/connect

48 lines
1.3 KiB
Text
Raw Normal View History

2022-03-01 04:29:52 +00:00
NAME
gcloud beta sql connect - connects to a Cloud SQL instance
SYNOPSIS
gcloud beta sql connect INSTANCE [--database=DATABASE, -d DATABASE]
[--port=PORT; default=9470] [--user=USER, -u USER]
[GCLOUD_WIDE_FLAG ...]
DESCRIPTION
2022-04-06 08:36:53 +00:00
(BETA) Connects to a Cloud SQL instance.
2022-03-01 04:29:52 +00:00
EXAMPLES
To connect to a Cloud SQL instance, run:
$ gcloud beta sql connect my-instance --user=root
POSITIONAL ARGUMENTS
INSTANCE
Cloud SQL instance ID.
FLAGS
--database=DATABASE, -d DATABASE
The PostgreSQL or SQL Server database to connect to.
--port=PORT; default=9470
Port number that gcloud will use to connect to the Cloud SQL Proxy
through localhost.
--user=USER, -u USER
Cloud SQL instance user to connect as.
GCLOUD WIDE FLAGS
These flags are available to all commands: --access-token-file, --account,
--billing-project, --configuration, --flags-file, --flatten, --format,
--help, --impersonate-service-account, --log-http, --project, --quiet,
--trace-token, --user-output-enabled, --verbosity.
Run $ gcloud help for details.
NOTES
This command is currently in beta and might change without notice. These
variants are also available:
$ gcloud sql connect
$ gcloud alpha sql connect