01 Run projects list command (Windows/macOS/Linux) using custom query filters to list the IDs of all the Google Cloud Platform (GCP) projects available in your cloud account:
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
gcloud projects list
--format="table(projectId)"
02 The command output should return the requested GCP project identifiers:
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
PROJECT_ID
cc-web-project-123123
cc-ml-project-123123
03 Run sql instances list command (Windows/macOS/Linux) using custom filtering to describe the name of each MySQL database instance created for the selected Google Cloud project:
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
gcloud sql instances list
--project cc-web-project-123123
--filter='DATABASE_VERSION:MYSQL*'
--format="(NAME)"
04 The command output should return the requested database instance name(s):
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
NAME
cc-mobile-db-instance
cc-user-db-instance
05 Run sql instances describe command (Windows/macOS/Linux) using the name of the MySQL database instance that you want to examine as identifier parameter and custom query filters to describe the binary log configuration status available for the selected database instance. The binary log is a set of log files that contain information about data modifications made to a MySQL database instance:
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
gcloud sql instances describe cc-mobile-db-instance
--format="value(settings.backupConfiguration.binaryLogEnabled)"
06 The command output should return the requested configuration status (True for enabled, False for disabled):
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
False
If the
sql instances describe command output returns
False, the MySQL binary log is not configured for the selected resource, therefore the Point-in-Time Recovery (PITR) feature is not enabled for the selected Google Cloud MySQL database instance.
07 Repeat step no. 5 and 6 to verify the binary log feature status for other MySQL instances provisioned for the selected project.
08 Repeat steps no. 3 – 7 for each project available within your Google Cloud account.