July 2018
Intermediate to advanced
506 pages
16h 2m
English
Database users can be controlled via the Cloud Console or gcloud. A common use case is changing a user's password, including the password for the default user. This can be done with the gcloud sql users set-password command. For example, we can set the root user's password on our hello-cloud-sql instance with the following command:
gcloud sql users set-password root % --instance hello-cloud-sql \ --password <PASSWORD>