Time to get hands on with Cloud SQL. Let's start with creating a database:
- On the command line simply type gcloud beta sql connect, specify the name of your Cloud SQL instance, and specify the user you want to connect as.
- Here we just have one user, the root user. You will be asked for your root user password before the connection is successful. You will see the MySQL prompt when you log into your MySQL instance. In order to allow Cloud Shell to connect to your MySQL instance, MySQL whitelists the IP address of your Cloud Shell instance temporarily. Cloud Shell instances are ephemeral (destroyed once we close them), so when you reconnect your session changes and your IP address might change ...