# Troubles moving from XenForo to Discourse

**URL:** <https://meta.discourse.org/t/troubles-moving-from-xenforo-to-discourse/266060>\
**Category:** Migration\
**Created:** [April 8, 2020, 5:25am UTC](https://meta.discourse.org/t/troubles-moving-from-xenforo-to-discourse/266060 "2020-04-08T05:25:58Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![007](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/007/32/175794_2.png) [@007](https://meta.discourse.org/u/007)\
**Post date:** [April 8, 2020, 5:25am UTC](https://meta.discourse.org/t/troubles-moving-from-xenforo-to-discourse/266060/1 "2020-04-08T05:25:58Z")

</div>

> [@Migrate a XenForo forum to Discourse](https://meta.discourse.org/t/migrate-a-xenforo-forum-to-discourse/45232):
>
> Hey guys so after trying for a week or so I decided to import the database on docker app which I hoped it will succeed without any issues. TBH I got some issues at first but it turned to be all easy to solve. Now I would recommend doing this only once before you deploy your production site, after importing everything take a Discourse backup, wipe everything out and install new Discourse instance then restore the imported db. Ok let’s begin: First lets backup your old database from your old …

Hi, starting at step 7, I’m running into trouble. Any help would be greatly appreciated. I’ve never worked with Ruby before, so there may be some obvious steps needed right before step 7 that I just don’t know about due to lack of experience. Forgive me if this question comes across as naive.

When I run:

> [@Migrate a XenForo forum to Discourse](https://meta.discourse.org/t/migrate-a-xenforo-forum-to-discourse/45232/1):
>
> echo “gem ‘mysql2’” \>\>Gemfile

I get the following result:

**-bash: Gemfile: Permission denied**

This is on a brand new server with a working install of Discourse.

Are there other components or pieces of software I need to install to get the steps starting at 7 to work?

And I noticed this thread is from a few years ago originally. Is every step in the OP still correct?

Thanks!

---

_[View the full topic](https://meta.discourse.org/t/troubles-moving-from-xenforo-to-discourse/266060)._
