I have an existing MySQL (version 5.7) instance hosted (managed) by Google Cloud SQL. I want to get a notification when someone is trying to connect my database with a bad username\password.
My idea was to look for it on the Google Stackrive logs, but it's not there.
There is an option to collect this information?
UPDATE 1:
I tried to connect the instance with gcloud but unfortunately, it's not working.
$ gcloud sql connect mydb
Whitelisting your IP for incoming connection for 5 minutes...done.
ERROR: (gcloud.sql.connect) It seems your client does not have ipv6 connectivity and the database instance does not have an ipv4 address. Please request an ipv4 address for this database instance.
It's because the database is accessible only inside the internal network. I searched for flags like --internal-ip but didn't find one.
However, I was guessing that it's not making any difference if I'll try to access the database from my DB editor (workbench). So I did it:

Searching for the query that @Christopher advised - but it's not there.
What I missed?
UPDATE 2:
Even if I remove this (resource.labels.database_id="***") condition - the result is the same.

ERROR: (gcloud.sql.connect) It seems your client does not have ipv6 connectivity and the database instance does not have an ipv4 address. Please request an ipv4 address for this database instance.This is caused because you are trying to connect to the Cloud SQL instance using the gcloud command when you have configured a private IP. You will not be able to connect to your Cloud SQL instance with MySQL workbench either since they are not in the same network. - Christopher Rodriguez Condegcloudcommand you will need to enable a public IP or use the Cloud SQL proxy or a Google Compute Instance in the same VPC subnet. Finally, if you are connecting from an external source, you will need to follow this steps. - Christopher Rodriguez Conde[TIMEFRAME][Note] Access denied for user 'USERNAME'@'[IP]' (using password: YES). Please make sure to change[PROJECT_ID]and[CLOUD_SQL_INSTANCE]with the proper values of your project ID and Cloud SQL instance. I follow the steps and I can assure you the logs are showing properly. I hope it really helps. - Christopher Rodriguez Condegcloudcommand with Cloud Shell and logs are showing just fine. I hope it helps - Christopher Rodriguez Conde