- NAME
- gcloud-sql-instances-set-root-password - Sets the password of the MySQL root user.
- SYNOPSIS
-
gcloud sql instances set-root-password INSTANCE [--format FORMAT] [--help] [--password PASSWORD, -p PASSWORD] [--password-file PASSWORD_FILE] [--project PROJECT] [--quiet, -q] [-h]
- POSITIONAL ARGUMENTS
-
-
INSTANCE
- Cloud SQL instance ID.
-
- FLAGS
-
-
--format
FORMAT
- Specify a format for printed output. By default, a command-specific human-friendly output format is used. Setting this flag to one of the available options will serialize the result of the command in the chosen format and print it to stdout. Supported formats are: "json", "text", "yaml".
-
--help
- Display detailed help.
-
--password
PASSWORD
- The password for the root user. WARNING: Setting password using this option can potentially expose the password to other users of this machine. Instead, you can use --password-file to get the password from a file.
-
--password-file
PASSWORD_FILE
- The path to the filename which has the password to be set. The first line of the file will be interpreted as the password to be set.
-
--project
PROJECT
- Google Cloud Platform project to use for this invocation.
-
--quiet
- Disable all interactive prompts when running gcloud commands. If input is required, defaults will be used, or an error will be raised.
-
-h
- Print a summary help and exit.
-
gcloud sql instances set-root-password
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 3.0 License , and code samples are licensed under the Apache 2.0 License . For details, see our Site Policies .
Last updated August 11, 2014.