> Source: https://docs.cyberelements.io/identity/7.1/Installation/InstallDoc/PostgreSQL/PostgreSQLInstallation/

# PostgreSQL installation

Copy the PostgreSQL installation setup to the database server.

![](https://docs.cyberelements.io/identity/7.1/img/Identity/Identity71-PostgreSQL-CopySetup.png)

Run the PostgreSQL installation setup as an administrator, then click on “Next >”.

![](https://docs.cyberelements.io/identity/7.1/img/Identity/Identity71-PostgreSQL-Welcome.png)

Specify the installation directory of the database engine, then click on “Next >”.

![](https://docs.cyberelements.io/identity/7.1/img/Identity/Identity71-PostgreSQL-InstallationDirectory.png)

Select the desired components, then click on “Next >”.

![](https://docs.cyberelements.io/identity/7.1/img/Identity/Identity71-PostgreSQL-SelectComponents.png)

Specify the PostgreSQL data storage directory, then click on “Next >”.

![](https://docs.cyberelements.io/identity/7.1/img/Identity/Identity71-PostgreSQL-DataDirectory.png)

Enter the password of the “superuser” account, then click on “Next >”.

> **Note**
>
> This account will be used by Identity to connect to the database.

![](https://docs.cyberelements.io/identity/7.1/img/Identity/Identity71-PostgreSQL-SuperuserPassword.png)

Specify the port number on which the database server must listen, then click on “Next >”. By default, port `5432` is used.

![](https://docs.cyberelements.io/identity/7.1/img/Identity/Identity71-PostgreSQL-Port.png)

Leave the “Locale” value set to “DEFAULT”, then click on “Next >”.

![](https://docs.cyberelements.io/identity/7.1/img/Identity/Identity71-PostgreSQL-AdvancedOptionsLocale.png)

Click on “Next >”.

![](https://docs.cyberelements.io/identity/7.1/img/Identity/Identity71-PostgreSQL-PreInstallSummary.png)

Click on “Next >”.

![](https://docs.cyberelements.io/identity/7.1/img/Identity/Identity71-PostgreSQL-ReadyToInstall.png)

The PostgreSQL installation starts.

![](https://docs.cyberelements.io/identity/7.1/img/Identity/Identity71-PostgreSQL-Installing.png)

The installation of the PostgreSQL database engine is complete.

![](https://docs.cyberelements.io/identity/7.1/img/Identity/Identity71-PostgreSQL-Completed.png)

After the installation, continue with the PostgreSQL post-installation configurations:

- Post-installation configurations

  ---

  Remote access (`pg_hba.conf`), `psql.exe` tool, database initialization and Identity installer settings.

  [→ Configure](https://docs.cyberelements.io/identity/7.1/Installation/InstallDoc/PostgreSQL/PostgreSQLPostInstallConfiguration/)
