Cloud SQL is a fully managed relational database service with [[MySQL]], [[Postgres]], and [[SQL Server]]. Each Cloud SQL instance operates the database on the persistent disk of its own [[virtual machine]] on a host Google Cloud server. You can enable automatic vertical scaling. A static IP address allows connection to other services.
If you need more customization than is available, you could simply set up your own database on your own virtual machine using Compute Engine. You might be able to find a preconfigured VM on the Marketplace that includes a relational database and better meets your needs.
If you need a horizontally scalable solution, see [[Cloud Spanner]].
After setting up your Cloud SQL in your project, you can connect via the Cloud Shell.
```bash
gcloud sql connect myinstance --user=postgres
```
You may need to authorize and/or enable APIs and retry the command. Provide your password (it will not show up when typing).