# Database Migration MariaDB to PostgreSQL

**URL:** <https://forum.mattermost.com/t/database-migration-mariadb-to-postgresql/13534>\
**Category:** Troubleshooting\
**Created:** [June 10, 2022, 1:20pm UTC](https://forum.mattermost.com/t/database-migration-mariadb-to-postgresql/13534 "2022-06-10T13:20:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![manuel46](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/manuel46/32/2522_2.png) [@manuel46](https://forum.mattermost.com/u/manuel46)\
**Post date:** [June 10, 2022, 1:20pm UTC](https://forum.mattermost.com/t/database-migration-mariadb-to-postgresql/13534/1 "2022-06-10T13:20:22Z")

</div>

Since there are Rumors Mattermost is dropping MariaDB Support I would like to  
migrate my MariaDB Mattermost installations to PostgreSQL. I have read some old Articles about, but there is no official procedure…

Or did I miss something? Anyone has done this recently?

---

<div class="post-metadata">

**Author:** ![agriesser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/agriesser/32/5644_2.png) [@agriesser](https://forum.mattermost.com/u/agriesser)\
**Post date:** [July 15, 2022, 11:59am UTC](https://forum.mattermost.com/t/database-migration-mariadb-to-postgresql/13534/2 "2022-07-15T11:59:56Z")

</div>

I haven’t done that and it might be complicated depending on the amount of data in your database (extensions, etc.).

But newer versions support an `export` and `import` task using the command line utility `mmctl`, which basically dumps all the information into a JSONL format and therefore supports cross-database transfers.

Worth a try, I think.

---

<div class="post-metadata">

**Author:** ![GOhrner](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/gohrner/32/5775_2.png) [@GOhrner](https://forum.mattermost.com/u/GOhrner)\
**Post date:** [October 18, 2022, 4:27pm UTC](https://forum.mattermost.com/t/database-migration-mariadb-to-postgresql/13534/3 "2022-10-18T16:27:31Z")

</div>

@manuel46: See [Migrating from MariaDB to PostgreSQL DB - #3 by agriesser](https://forum.mattermost.com/t/migrating-from-mariadb-to-postgresql-db/14194/3) if this is still relevant for you.
