gcloud_alpha_sql_users_set-password (1)
NAME
- gcloud alpha sql users set-password - changes a user's password in a given instance
SYNOPSIS
-
gcloud alpha sql users set-password USERNAME --instance=INSTANCE, -i INSTANCE [--async] [--host=HOST] [--password=PASSWORD | --prompt-for-password] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(ALPHA) Changes a user's password in a given instance with specified
POSITIONAL ARGUMENTS
-
- USERNAME
-
Cloud SQL username.
REQUIRED FLAGS
-
- --instance=INSTANCE, -i INSTANCE
-
Cloud SQL instance ID.
OPTIONAL FLAGS
-
- --async
-
Display information about the operation in progress, without waiting for the
operation to complete.
- --host=HOST
-
Cloud SQL user's host name expressed as a specific IP address or address range.
% denotes an unrestricted host name. Applicable flag for MySQL instances;
ignored for PostgreSQL instances. Note, if you connect to your instance using IP
addresses, you must add your client IP address as an Authorized Address, even if
your host name is unrestricted. For help on how to do so, read:
cloud.google.com/sql/docs/mysql/configure-ip
-
At most one of these may be specified:
-
- --password=PASSWORD
-
Cloud SQL user's password.
- --prompt-for-password
-
Prompt for the Cloud SQL user's password with character echo disabled. The
password is all typed characters up to but not including the RETURN or ENTER
key.
-
GCLOUD WIDE FLAGS
These flags are available to all commands: --account, --configuration, --flags-file, --flatten, --format, --help, --log-http, --project, --quiet, --trace-token, --user-output-enabled, --verbosity. Run $ gcloud help for details.
NOTES
This command is currently in ALPHA and may change without notice. If this command fails with API permission errors despite specifying the right project, you will have to apply for early access and have your projects registered on the API whitelist to use it. To do so, contact Support at cloud.google.com/support These variants are also available:
- $ gcloud sql users set-password $ gcloud beta sql users set-password