# Create a PostgreSQL database

In 
GCP
Published 2022-12-03

This tutorial explains how to create a PostgreSQL database in GCP.

Cloud SQL instances are fully managed, relational MySQL, PostgreSQL, and SQL Server databases. Google handles replication, patch management, and database management to ensure availability and performance.

The first step is to go to "Databases" -> "SQL" from GCP Console.

You will see the following page:

Click on "Create instance".

Choose PostgreSQL.

Choose the instance name, the password for the default admin user "postgres" and database version. Choose if the database will be used for production or development.

Choose the region and the zonal availability.

Choose a machine type.

Choose storage properties.

Choose a public or private IP for the database. I will choose a public IP as my database is only for testing purpose.

You can customize better the database if you want, but I will stop here.

I will click on "Create instance" in order to create my PostgreSQL database instance.

After a while, we can see that the instance is up and running.