I can list the databases in my Cloud SQL instance but I can't connect to it.
gcloud beta sql databases list --instance=dbinstance
NAME CHARSET COLLATION
information_schema utf8 utf8_general_ci
main utf8 utf8_general_ci
mysql utf8 utf8_general_ci
performance_schema utf8 utf8_general_ci
It is adding my local machine to the authorisation list. I can see that via the console. But it's failing to connect:
gcloud beta sql connect dbinstance --user=root
Whitelisting your IP for incoming connection for 5 minutes...
Connecting to database with SQL user [root].
Enter password:
ERROR 2003 (HY000): Can't connect to MySQL server on '{db ip}' (110)
It isn't configured to use SSL.