Using Console
Using CLI
<INSTANCE_NAME>
with the name of the Cloud SQL instance for which you want to enable the alerts. Replace <HH:MM>
with the time at which you want to start the daily backup, in 24-hour format. For example, if you want to start the backup at 2:00 AM, you can use --backup-start-time 02:00
.
binaryLogEnabled
and backupStartTime
fields for the instance. If binaryLogEnabled
is set to true
and backupStartTime
is set to the time you specified in step 2, then the SQL Configuration Change Log Alerts have been successfully enabled for the instance.
Using Python
<project-id>
with your GCP project ID in the code. Also, make sure that the Google Cloud SQL API is enabled for the project.