# Import data from Phorum

**URL:** <https://meta.discourse.org/t/import-data-from-phorum/40294>\
**Category:** Product Support\
**Created:** [February 28, 2016, 4:19pm UTC](https://meta.discourse.org/t/import-data-from-phorum/40294 "2016-02-28T16:19:53Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![fra](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fra/32/121847_2.png) [@fra](https://meta.discourse.org/u/fra)\
**Post date:** [February 28, 2016, 4:19pm UTC](https://meta.discourse.org/t/import-data-from-phorum/40294/1 "2016-02-28T16:19:53Z")

</div>

Hi,  
I am trying to import data from Phorum database. I have filled db data to the phorum.rb script (mysql name, pass, db name) and tried to run the script with: `ruby script/import_scripts/phorum.rb`

but it failed with this error:

```plaintext
/var/discourse/script/import_scripts/base.rb:14:in `require_relative': cannot load such file --
/var/discourse/config/environment (LoadError)
from /var/discourse/script/import_scripts/base.rb:14:in `<top (required)>'
from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54:in `require'
from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54:in `require'
from script/import_scripts/phorum.rb:3:in `<main>'

```

Have you any idea what am I doing wrong?

Thanks so much!

---

_[View the full topic](https://meta.discourse.org/t/import-data-from-phorum/40294)._
