# Flarum to Discourse Migration Script

**URL:** <https://meta.discourse.org/t/flarum-to-discourse-migration-script/191510>\
**Category:** Migration\
**Tags:** flarum\
**Created:** [May 24, 2021, 8:52pm UTC](https://meta.discourse.org/t/flarum-to-discourse-migration-script/191510 "2021-05-24T20:52:09Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Lecter](https://avatars.discourse-cdn.com/v4/letter/l/ecccb3/32.png) [@Lecter](https://meta.discourse.org/u/Lecter)\
**Post date:** [May 24, 2021, 8:52pm UTC](https://meta.discourse.org/t/flarum-to-discourse-migration-script/191510/1 "2021-05-24T20:52:09Z")

</div>

Hey All,

Just figured I’d make a quick post with a little bit on how I migrated our 25,000+ member, 250,000+ post forum from Flarum to Discourse.

As I’m sure you know if you’re reading this, there’s no official import script for Flarum → Discourse, however @koen360 was kind enough to share his work with getting the FluxBB importer modified to import users. However, we needed to also import posts as a large part of our forums success rides on users searching for very specific terms that appear in posts. So that’s what we did…with several hours of failed migrations, headaches, and some bloodshed.

I’m by no means an expert in writing migration scripts, but this script works well enough for the current version of Flarum at the time of writing (V0.1.0-beta.16). The script (attached below) will need access to your MySQL/MariaDB database, preferably a copy of it so you don’t wreck your production site if something goes wrong. Just replace the dummy values in the MySQL connection and you should be set.

**Just make sure you have a full backup of your Flarum database before you start this process, if something goes wrong it’s likely irreversible.**

If you need assistance with your migration from Flarum → Discourse feel free to reply to this thread, I’m by no means an expert, but I’ll try to help out however I can.

> [@Migrate from another forum to Discourse](https://meta.discourse.org/t/migrating-to-discourse-from-another-forum-software/16616):
>
> mega This guide serves as a high level overview of the migration process. For specifics on the wide range of forum softwares to import, including Vanilla, phpBB3, SMF2, bbPress, and vBulletin, review our [dedicated tutorials](https://meta.discourse.org/tags/c/documentation/10/migrations). Not all scripts have tutorials, but an exhaustive list of available imports is available under the [script/import\_scripts](https://github.com/discourse/discourse/tree/main/script/import_scripts) folder on GitHub. For larger migrations, there is also a faster [script/bulk\_import](https://github.com/discourse/discourse/tree/main/script/bulk_import) system that writes directly to the database. So you want to mi…

[You can get the importer here, apparently I can’t upload a file since this is my first post](https://i.lecter.me/flarum_import.zip)

---

_[View the full topic](https://meta.discourse.org/t/flarum-to-discourse-migration-script/191510)._
