# Migrate a XenForo forum to Discourse

**URL:** <https://meta.discourse.org/t/migrate-a-xenforo-forum-to-discourse/45232>\
**Category:** Sysadmins\
**Tags:** how-to\
**Created:** [June 4, 2016, 1:38am UTC](https://meta.discourse.org/t/migrate-a-xenforo-forum-to-discourse/45232 "2016-06-04T01:38:22Z")\
**Posts on this page:** 1\
**Showing post:** 120

<div class="post-metadata">

**Author:** ![SubStrider](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/substrider/32/512604_2.png) [@SubStrider](https://meta.discourse.org/u/SubStrider)\
**Post date:** [February 16, 2025, 5:28am UTC](https://meta.discourse.org/t/migrate-a-xenforo-forum-to-discourse/45232/120 "2025-02-16T05:28:00Z")

</div>

The mysql-server install step is now obsolete. It needs to install mariadb-server.

```plaintext
sudo apt-get install mariadb-server mariadb-client libmariadb-dev-compat libmariadb-dev

```

I was able to follow rest of the steps and import XF DB, so someone should update the guide.

**Now I am stuck on this following step and need help.**

```plaintext
echo "gem 'mysql2'" >>Gemfile
bundle install --no-deployment

```

Running the above gives me the following error. I checked the Gemfile and it only contains this one line - gem ‘mysql2’

```plaintext
This Gemfile does not include an explicit global source. 
Not using an explicit global source may result in a different lockfile being generated depending on the gems you have installed locally before bundler is run. 
Instead, define a global source in your Gemfile like this: source "https://rubygems.org".
Could not find gem 'mysql2' in locally installed gems.
root@ip-172-566-459-13-app:/# 

```

---

_[View the full topic](https://meta.discourse.org/t/migrate-a-xenforo-forum-to-discourse/45232)._
