# H2 database migration to postgress

**URL:** <https://forum.keycloak.org/t/h2-database-migration-to-postgress/23784>\
**Category:** Configuring the server\
**Created:** [December 19, 2023, 7:55am UTC](https://forum.keycloak.org/t/h2-database-migration-to-postgress/23784 "2023-12-19T07:55:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![supun](https://avatars.discourse-cdn.com/v4/letter/s/8e7dd6/32.png) [@supun](https://forum.keycloak.org/u/supun)\
**Post date:** [December 19, 2023, 7:55am UTC](https://forum.keycloak.org/t/h2-database-migration-to-postgress/23784/1 "2023-12-19T07:55:30Z")

</div>

I have installed Keycloak 18.0.1, and I want to migrate the H2 database to cloud PostgreSQL. I used the following commands

```bash
./kc.sh start-dev --spi-connections-jpa-quarkus-migration-strategy=manual
./kc.sh start-dev --spi-connections-jpa-legacy-migration-strategy=manual

```

However, the data did not migrate successfully
