# Migrate PostgreSQL DB to a new server

**URL:** <https://forum.keycloak.org/t/migrate-postgresql-db-to-a-new-server/12467>\
**Category:** Configuring the server\
**Created:** [December 6, 2021, 8:28am UTC](https://forum.keycloak.org/t/migrate-postgresql-db-to-a-new-server/12467 "2021-12-06T08:28:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marcom82](https://avatars.discourse-cdn.com/v4/letter/m/b38774/32.png) [@Marcom82](https://forum.keycloak.org/u/Marcom82)\
**Post date:** [December 6, 2021, 8:28am UTC](https://forum.keycloak.org/t/migrate-postgresql-db-to-a-new-server/12467/1 "2021-12-06T08:28:06Z")

</div>

Hi All,  
actually my Keycloak (15.0.2) is configured to work with a PostgreSQL (v9.6.6 installed on a different server). Now I have to move the database to another Server where is already installed PostgreSQL (v11.10).  
Is there an easy way to migrate the database?

Thansk in advance

Best  
Marco

---

<div class="post-metadata">

**Author:** ![rafidamr](https://avatars.discourse-cdn.com/v4/letter/r/3da27b/32.png) [@rafidamr](https://forum.keycloak.org/u/rafidamr)\
**Post date:** [November 16, 2022, 10:33am UTC](https://forum.keycloak.org/t/migrate-postgresql-db-to-a-new-server/12467/2 "2022-11-16T10:33:20Z")

</div>

I dumped the .sql from Google Cloud SQL and imported the .sql into the new instance.  
It works well for me.
