# Migrate Database From MariaDB to PostgreSQL

**URL:** <https://forum.mattermost.com/t/migrate-database-from-mariadb-to-postgresql/23529>\
**Category:** Uncategorized\
**Created:** [July 8, 2025, 10:00am UTC](https://forum.mattermost.com/t/migrate-database-from-mariadb-to-postgresql/23529 "2025-07-08T10:00:53Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![awky](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@awky](https://forum.mattermost.com/u/awky)\
**Post date:** [July 9, 2025, 4:34pm UTC](https://forum.mattermost.com/t/migrate-database-from-mariadb-to-postgresql/23529/3 "2025-07-09T16:34:03Z")

</div>

You might consider creating a new Mattermost instance and following this excellent guide to migrate your data over (using mmctl):

> [@Recipe: Migrating a Mattermost Server with \`mmctl\`](https://forum.mattermost.com/t/recipe-migrating-a-mattermost-server-with-mmctl/11912):
>
> Problem You want to move your Mattermost data from one Mattermost server to another, including files, but can’t back up your database and files directly. Solution Note: These instructions are for Mattermost v5.36.1 and higher. Please upgrade your Mattermost instance if you are running an older version. 0. Set up your destination server Install Mattermost and create a single Mattermost user as admin. Go to the System Console and configure it as necessary for your application. [Instructions for i…](https://docs.mattermost.com/install/requirements.html)

Full disclosure, I’m about to self bump my own bug report 😀

Hopefully you have better luck than me, as I’m facing a bug with mmctl export:

> [@Mmctl export create fails with 'Limit exceeded for paging'](https://forum.mattermost.com/t/mmctl-export-create-fails-with-limit-exceeded-for-paging/23485):
>
> Summary While trying to create an export, mmctl export create fails with: exportAllPosts: Limit exceeded for paging., failed to find Posts Steps to reproduce On the Mattermost server, create an export:cd /opt/mattermost/ bin/mmctl --local export create Check the logs:tail -f /opt/mattermost/logs/mattermost.log Mattermost version 10.7.0 Expected behaviour Create a full export of the server, including messages. Observed behaviour No user messages are in the resulting export. The file…

---

_[View the full topic](https://forum.mattermost.com/t/migrate-database-from-mariadb-to-postgresql/23529)._
