Using Console
Using CLI
gcloud sql instances list
gcloud sql instances patch [INSTANCE_NAME] --database-flags log_error_verbosity=TERSE --project [PROJECT_ID]
Replace [INSTANCE_NAME] with the name of the instance you identified in step 3 and [PROJECT_ID] with your GCP project ID.
gcloud sql instances describe [INSTANCE_NAME] --project [PROJECT_ID]
This command will display the details of the instance, including the updated log_error_verbosity flag value.
Using Python
projects.instances.patch
method to update the instance with the correct log_error_verbosity flag value.
project_id
, instance_name
, and log_error_verbosity
variables with the correct values for your environment. Also, make sure to replace the path/to/service/account/key.json
with the path to your service account key file.